Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion charged-ieee/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
30 changes: 28 additions & 2 deletions charged-ieee/lib.typ
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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",

Expand Down Expand Up @@ -206,6 +210,13 @@
\ #author.email
]
}
if "orcid" in author {
if type(author.orcid) == str [
\ #link(author.orcid)
] else [
\ #author.orcid
]
}
}))
)

Expand All @@ -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

Expand Down