diff --git a/charged-ieee/README.md b/charged-ieee/README.md index eee984b..424d561 100644 --- a/charged-ieee/README.md +++ b/charged-ieee/README.md @@ -15,17 +15,22 @@ typst init @preview/charged-ieee Typst will create a new directory with all the files needed to get you started. +To render fonts correctly, you need to install `TeX Gyre Termes` and +`TeX Gyre Cursor` on your system. + ## Configuration This template exports the `ieee` function with the following named arguments: - `title`: The paper's title as content. - `authors`: An array of author dictionaries. Each of the author dictionaries must have a `name` key and can have the keys `department`, `organization`, - `location`, and `email`. All keys accept content. + `location`, `email`, and `orcid`. All keys accept content. - `abstract`: The content of a brief summary of the paper or `none`. Appears at the top of the first column in boldface. - `index-terms`: Array of index terms to display after the abstract. Shall be `content`. +- `thanks`: The content equivalent to `thanks{}` in IEEEtran. Appears at the + bottom of the first page. - `paper-size`: Defaults to `us-letter`. Specify a [paper size string](https://typst.app/docs/reference/layout/page/#parameters-paper) to change the page format. diff --git a/charged-ieee/lib.typ b/charged-ieee/lib.typ index f3c469e..7a2b04a 100644 --- a/charged-ieee/lib.typ +++ b/charged-ieee/lib.typ @@ -5,8 +5,8 @@ title: [Paper Title], // An array of authors. For each author you can specify a name, - // department, organization, location, and email. Everything but - // but the name is optional. + // department, organization, location, email, and orcid. Everything but + // the name is optional. authors: (), // The paper's abstract. Can be omitted if you don't have one. @@ -15,6 +15,10 @@ // A list of index terms to display after the abstract. index-terms: (), + // Equivalent to `\thanks` in IEEEtran. Typically used for manuscript dates, + // funding notes, or author affiliations. + thanks: none, + // The article's paper size. Also affects the margins. paper-size: "us-letter", @@ -206,6 +210,13 @@ \ #author.email ] } + if "orcid" in author { + if type(author.orcid) == str [ + \ #link(author.orcid) + ] else [ + \ #author.orcid + ] + } })) ) @@ -232,6 +243,21 @@ v(2pt) } + // Display thanks. + if thanks != none { + place( + bottom, + float: true, + scope: "column", + { + set par(first-line-indent: (amount: 1em, all: true), leading: 0.45em) + set text(size: 8pt) + v(5pt) + thanks + }, + ) + } + // Display the paper's contents. body