AgentDock
1.7k
Dock Editor
Math Equations

Math Equations

A LaTeX equation editor inside the document. Inline and block math, KaTeX rendering, and a popover that shows the rendered result while you type the source.

The usual routine for math in a document is grim. You write the LaTeX in an online equation editor, render it, screenshot it, and paste the image into your paper, where it can never be edited again. In Dock the equation editor lives inside the document. You write LaTeX where the math belongs, KaTeX renders it in place, and clicking any equation reopens its source.

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

For a standalone equation, insert a Math Block from the slash menu. Block math is centered on its own line, the right home for a numbered equation, a multi-line derivation, or anything the prose should stand back from.

Click an equation and its editor opens as a popover: LaTeX source on one side, the rendered result updating live as you type. Click away to commit. The source stays separate from the output, so correcting a long expression never breaks 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. KaTeX is the same engine behind math across scientific publishing on the web, so the output looks the way papers look.

Equations carry through to a published page and to HTML export, rendering exactly as they do in the editor. No screenshots at any point. For the full list of export formats, see Import and Export.