Skip to content

Options

bibliography

Type: array<string>
Description: Path (or array of paths) of bibliography files to use.

bibliographystyle

Type: string
Default: "apa"
Options: Styles available natively in Typst or path to a csl file. Description: The style used for both the bibliography and the in-line citations.

font-body

Type: string
Default: "libertinus serif"
Description: Primary font used throughout the document.

font-body-size

Type: string
Default: 9pt
Description: Font size used in the abstract and the body of the document.

line-numbers

Type: boolean
Default: true
Options: [true, false]
Description: Include line numbers. Line numbers start after the abstract.

line-spacing

Type: length/string
Default: 0.65em
Description: Line spacing used in the body of the document, including figure legends, table legends and margin matter. Either a size including unit, e.g. 0.65em or 9pt, or one of the strings: ["single", "onehalf", "double"].
Type: string
Default: none
Description: Path to a (publisher) logo, otherwise none if no logo is to be included.

logo-position

Type: alignment
Default: top
Options: [top, bottom]
Description: When a logo is included, whether to print it on the top or bottom of the first page.

margin-side

Type: alignment/string
Default: left
Options: [left, right]
Description: Which side to leave space for margin matter.

paper-size

Type: string
Default: "us-letter"
Options: See all options here
Description: The paper size to be used.

part-data-availability

Type: string
Description: A data availability statement.

part-funding

Type: string
Description: A funding statement.

section-numbering

Type: string
Default: "1.1.1"
Options: Any valid pattern, e.g. "1.a.i", or none. You can also use brackets (e.g. "1.(a).(i)") which can be useful when used in combination with section-numbering-last.
Description: Whether to use section/heading numbering patterns, and provide the desired pattern.

section-numbering-last

Type: boolean
Default: false
Options: [true, false]
Description: When true, only the lowest level of the pattern is used in the section heading. So when using a pattern like "1.(a).(i)" only (i) is shown for a third level heading.

theme-color

Type: string
Default: #2453A1
Description: Sets the primary color of the article.