TypstDocumentation

Styles functions

Alternate letterforms within formulas.

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

Functions

upright

Upright (non-italic) font style in math.

upright() -> content
$ upright(A) != A $
Preview

body
content
RequiredPositional
Question mark

The content to style.

italic

Italic font style in math.

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

italic() -> content

body
content
RequiredPositional
Question mark

The content to style.

bold

Bold font style in math.

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

body
content
RequiredPositional
Question mark

The content to style.