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

Styles

Alternate letterforms within formulas.

These functions are distinct from the text function because math fonts contain multiple variants of each letter.

Function

upright

Upright (non-italic) font style in math.

math.upright()->
$ upright(A) != A $
Preview

body
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 content to style.

italic

Italic font style in math.

For roman letters and greek lowercase letters, this is already the default.

math.italic()->

body
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 content to style.

bold

Bold font style in math.

math.bold()->
$ bold(A) := B^+ $
Preview

body
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 content to style.

Open official docs

Search