TypstDocumentation

Variants

Alternate typefaces within formulas.

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

Functions

serif

Serif (roman) font style in math.

This is already the default.

math.serif() -> content

body
content
RequiredPositional
Question mark

The content to style.

sans

Sans-serif font style in math.

math.sans() -> content
$ sans(A B C) $
Preview

body
content
RequiredPositional
Question mark

The content to style.

frak

Fraktur font style in math.

math.frak() -> content
$ frak(P) $
Preview

body
content
RequiredPositional
Question mark

The content to style.

mono

Monospace font style in math.

math.mono() -> content
$ mono(x + y = z) $
Preview

body
content
RequiredPositional
Question mark

The content to style.

bb

Blackboard bold (double-struck) font style in math.

For uppercase latin letters, blackboard bold is additionally available through symbols of the form NN and RR.

math.bb() -> content
$ bb(b) $
$ bb(N) = NN $
$ f: NN -> RR $
Preview

body
content
RequiredPositional
Question mark

The content to style.

cal

Calligraphic font style in math.

math.cal() -> content
Let $cal(P)$ be the set of ...
Preview

body
content
RequiredPositional
Question mark

The content to style.