Equations

Equations

Equations are edited as math on the page, in every format. Two shortcuts cover most of it, and everything else is a click away.

Where to find it
Shortcut
Ctrl+M Inline equation, flowing with the text.
Shortcut
Ctrl+Shift+M Display equation, on its own line.
Menu
Insert › Math Inline equation, Display equation, and in a LaTeX file every environment below.

The math toolbar

Click into any equation and a toolbar appears above it: symbols grouped by kind (Greek, calculus, relations, sets, matrices), inserted at the cursor. A Select equation block button selects the whole equation as one unit.

The math toolbar: Common, Greek, Calculus, Relations, Sets, Trig, Matrix, Science, and Envs

Numbering and references

Hover an equation for a Settings icon beside it, and switch on Numbered. Type @ anywhere in the document to reference it by number. Renumbering after you add or remove equations is automatic.

A display equation with its Settings icon at the right
The Numbered toggle in an equation's settings

Environments

In a LaTeX file, the math environments are inserted from Insert › Math.

The Insert Math menu, listing equation types and environments

Labels and numbered equations

Switch on Numbered in an equation's settings to add a label. Which kind of label you get depends on the environment.

Single equations

A plain equation gets one label. Find it under the settings' Advanced options as \label, the same one a \ref points to, and edit it there.

Align, Gather, Alignat, and Eqnarray

These get a label per line instead. Open the settings and fill in the Line Labels field for each line, or click Auto to generate one. Lines are split on \\ in your LaTeX.

Multline

Multline keeps a single label rather than one per line, since it still renders as one block.

An Align equation's settings, showing per-line labels for line 1 and line 2

In Typst

The same math editor and toolbar apply. There is no Numbered switch, since Typst numbers equations from a rule in the document rather than one at a time. The settings panel has a Label field instead, and @ inserts a reference to it, the same as in LaTeX. There are no environments. An equation the editor cannot translate into its math editor stays in place as a Typst code chip, and is still editable there.

A Typst equation's settings: a Label field and a note that numbering comes from the document

In Markdown

Math between single dollar signs is inline and between double dollar signs is a block, edited with the same toolbar. There is no numbering and no label.