LaTeX docs: Block formulaLaTeX

Need help? Contact support

LaTeX docs

Add a block formula

A block formula sits on its own line — use it for equations you want to stand out.

Add a block formula

  1. Open the page for editing and put the cursor on an empty line.

  2. Type /latex and choose LaTeX block formula.

  3. Type your formula in the code box, for example x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}. The preview above it updates as you type.

    The LaTeX block formula editor with a live preview, code box and symbol strip
  4. Optionally, choose the alignment (left, centre or right) and size (normal or large) with the buttons in the preview.

  5. Choose Insert, or press Ctrl Enter (⌘ Enter on a Mac).

  6. Publish or update the page.

Tip

You can also insert the formula from the + (Insert) menu in the editor toolbar: search for LaTeX.

Block or inline?

Use a block formula when…Use an inline formula when…
the formula is the point of the paragraphthe formula is part of a sentence
it’s tall: fractions, sums, matrices, several linesit’s short: a variable, xᵢ, a² + b²
you want to align it left, centre or rightit should flow with the text

Equations on several lines

To align several equations, use aligned inside the formula, with & before the sign to align on and \\ between lines:

\begin{aligned}
  f(x) &= (x + 1)^2 \\
       &= x^2 + 2x + 1
\end{aligned}

You can also use align, gather and equation — but then that environment must be the whole formula, as in LaTeX itself. See LaTeX basics.