Info
This site is generated using the static site generator developed by the Typst Community. Please adjust the text content of this banner according to your usage requirements. At Typst GmbH's request, when publishing documentation, you must clearly indicate that it is non-official and display the version of Typst being documented. For details, refer to Issue #874 on typst/typst.
TypstDocumentEnglish
v0.dev.2025-09-12

terms
Element
Element
Element functions can be customized with set and show rules.

A list of terms and their descriptions.

Displays a sequence of terms and their descriptions vertically. When the descriptions span over multiple lines, they use hanging indent to communicate the visual hierarchy.

Example

/ Ligature: A merged glyph.
/ Kerning: A spacing adjustment
  between two adjacent letters.
Preview

Syntax

This function also has dedicated syntax: Starting a line with a slash, followed by a term, a colon and a description creates a term list item.

Parameter
Parameter
Parameters are input values for functions. Specify them in parentheses after the function name.

tight
Settable
Settable
Settable parameters can be set using the set rule, changing the default value used thereafter.

Defines the default spacing of the term list. If it is false, the items are spaced apart with paragraph spacing. If it is true, they use paragraph leading instead. This makes the list more compact, which can look better if the items are short.

In markup mode, the value of this parameter is determined based on whether items are separated with a blank line. If items directly follow each other, this is set to true; if items are separated by a blank line, this is set to false. The markup-defined tightness cannot be overridden with set rules.

Default value:

true

Show example
/ Fact: If a term list has a lot
  of text, and maybe other inline
  content, it should not be tight
  anymore.

/ Tip: To make it wide, simply
  insert a blank line between the
  items.
Preview

separator
Settable
Settable
Settable parameters can be set using the set rule, changing the default value used thereafter.

The separator between the item and the description.

If you want to just separate them with a certain amount of space, use h(2cm, weak: true) as the separator and replace 2cm with your desired amount of space.

Default value:

h(amount: 0.6em, weak: true)

Show example
#set terms(separator: [: ])

/ Colon: A nice separator symbol.
Preview

indent
Settable
Settable
Settable parameters can be set using the set rule, changing the default value used thereafter.

The indentation of each item.

Default value:

0pt

hanging-indent
Settable
Settable
Settable parameters can be set using the set rule, changing the default value used thereafter.

The hanging indent of the description.

This is in addition to the whole item's indent.

Default value:

2em

Show example
#set terms(hanging-indent: 0pt)
/ Term: This term list does not
  make use of hanging indents.
Preview

spacing
Settable
Settable
Settable parameters can be set using the set rule, changing the default value used thereafter.

The spacing between the items of the term list.

If set to auto, uses paragraph leading for tight term lists and paragraph spacing for wide (non-tight) term lists.

Default value:

auto

children
Required
Required
Required parameters must be specified when calling the function.
Positional
Positional
Positional parameters can be set by specifying them in order, omitting the parameter name.
Variadic
Variadic
Variadic parameters can be specified multiple times.

The term list's children.

When using the term list syntax, adjacent items are automatically collected into term lists, even through constructs like for loops.

Show example
#for (year, product) in (
  "1978": "TeX",
  "1984": "LaTeX",
  "2019": "Typst",
) [/ #product: Born in #year.]
Preview

Definition
Definition
These functions and types can have related definitions. To access a definition, specify the name of the function or type, followed by the definition name separated by a period.

item
Element
Element
Element functions can be customized with set and show rules.

A term list item.

terms.item()->

term
Required
Required
Required parameters must be specified when calling the function.
Positional
Positional
Positional parameters can be set by specifying them in order, omitting the parameter name.

The term described by the list item.

description
Required
Required
Required parameters must be specified when calling the function.
Positional
Positional
Positional parameters can be set by specifying them in order, omitting the parameter name.

The description of the term.

Open official docs

Search