TypstDocumentation

formula

A mathematical formula.

Can be displayed inline with text or as a separate block.

Example

#set text("New Computer Modern")

Let $a$, $b$, and $c$ be the side
lengths of right-angled triangle.
Then, we know that:
$ a^2 + b^2 = c^2 $

Prove by induction:
$ sum_(k=1)^n k = (n(n+1)) / 2 $
Preview

Syntax

This function also has dedicated syntax: Write mathematical markup within dollar signs to create a formula. Starting and ending the formula with at least one space lifts it into a separate block that is centered horizontally. For more details about math syntax, see the main math page.

Parameters
Question mark

body
contentRequiredPositional
Question mark

The contents of the formula.

block

Whether the formula is displayed as a separate block.