Typst Fumadocs

Sizes

Documentation for the sizes functions.

Forced size styles for expressions within formulas.

These functions allow manual configuration of the size of equation elements to make them look as in a display/inline equation or as if used in a root or sub/superscripts.

Forced display style in math.

This is the normal size for block equations.

Loading compiler...
#math.display(
  body,
  cramped: bool
) -> content

Parameters

Prop

Type

Forced inline (text) style in math.

This is the normal size for inline equations.

Loading compiler...
#math.inline(
  body,
  cramped: bool
) -> content

Parameters

Prop

Type

Forced script style in math.

This is the smaller size used in powers or sub- or superscripts.

Loading compiler...
#math.script(
  body,
  cramped: bool
) -> content

Parameters

Prop

Type

Forced second script style in math.

This is the smallest size, used in second-level sub- and superscripts (script of the script).

Loading compiler...
#math.sscript(
  body,
  cramped: bool
) -> content

Parameters

Prop

Type

On this page