Equations

Equations

Equations are edited as real math, not as text you hope compiles. Two shortcuts cover most of it; 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 every environment below, in one flat list.

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.

An equation block selected, with its Settings icon and a delete button
The Numbered toggle in an equation's settings

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

Environments

You can insert math environments via Insert › Math.

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, not 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