Typst Fumadocs

Fraction

Documentation for the `frac` function.

A mathematical fraction.

Example

Loading compiler...

Syntax

This function also has dedicated syntax: Use a slash to turn neighbouring expressions into a fraction. Multiple atoms can be grouped into a single expression using round grouping parentheses. Such parentheses are removed from the output, but you can nest multiple to force them.

#math.frac(
  num,
  denom,
  style: str
) -> content

Parameters

Prop

Type

On this page