LaTeX docs: Edit a formulaLaTeX

Need help? Contact support

LaTeX docs

Edit a formula

Change a formula, its size or its alignment at any time.

Open a formula for editing

  1. Open the page for editing.

  2. Select the formula. A small toolbar appears under it.

  3. Choose Edit (the pencil icon).

    The toolbar that appears when you select a formula, with the Edit button
  4. Change the formula, then choose Save, or press Ctrl Enter (⌘ Enter on a Mac).

  5. Update the page.

To remove a formula, select it and choose Remove (the bin icon) in the same toolbar.

What the editor does for you

FeatureHow it works
Live previewThe formula renders above the code box as you type. While you’re halfway through a command, the last valid formula stays visible, dimmed.
AutocompleteType \ and the start of a command — such as \fr — to see matching commands with a preview. Press Tab or Enter to insert one.
BracketsTyping {, ( or [ adds the closing bracket. Matching brackets are highlighted.
Syntax highlightingCommands, numbers and brackets are coloured so the structure is easy to read.
Error messagesIf a formula can’t render, a short message explains why — for example Missing } or Unknown command. Insert and Save stay disabled until it’s fixed.
Quick fixesFor a mistyped command, the error offers a fix, such as Replace with \frac.
Size and alignmentThe buttons in the preview set the size (normal or large) and, for block formulas, the alignment.
The editor showing an Unknown command error with a Replace with suggestion
An unknown command, with a one-click fix.

Keyboard shortcuts

KeysAction
\Start a command and open autocomplete
Tab or EnterAccept the highlighted autocomplete suggestion
Ctrl Enter / ⌘ EnterInsert or save the formula
EscClose the autocomplete list

LaTeX help

The LaTeX help link at the top of the editor opens this documentation. For the commands you can use, see LaTeX basics.