AgentDock

1.7k
Dock Editor
Math Equations

Math Equations

Write LaTeX math in the Dock Editor. Inline and block equations, KaTeX rendering, and the math editor popover for editing an equation in place.

Dock renders mathematics with LaTeX, so equations look right in a research paper, a problem set, or a technical report. Math is rendered with KaTeX, the same engine used across scientific publishing on the web.

Inline math sits inside a sentence, like a variable or a short expression in the middle of a line. Write the LaTeX between delimiters and it renders in place, flowing with the surrounding text at the right size.

For a standalone equation, insert a Math Block from the slash menu. Block math is centered on its own line and is the right choice for a numbered equation, a multi-line derivation, or anything you want to call out from the prose.

Click an existing equation to open the math editor popover. You edit the LaTeX in the popover and see the rendered result update as you type, then click away to commit. This keeps the LaTeX source separate from the rendered output, so a long expression is easy to correct without breaking the layout of the page.

Screenshot
The math editor popover open over a block equation, showing the LaTeX source on one side and the live KaTeX-rendered result on the other.

KaTeX covers the large majority of standard LaTeX math: fractions, roots, sums and integrals, Greek letters, matrices, subscripts and superscripts, and the common operators and symbols. If an expression renders in KaTeX, it renders in Dock.

Equations carry through to a published page and to HTML export, where they render the same way they do in the editor. For the full list of export formats, see Import and Export.