MojoPad typesets LaTeX math anywhere in a note, using KaTeX — inline formulas and full display equations. Like everything else, it runs entirely on your Mac, fonts and all — no account, no server, no internet.
Wrap an expression in single dollar signs for inline math — $e^{i\pi}+1=0$
renders right in your sentence — and double dollar signs for a centered block equation:
$$
\int_0^\infty x^2\,dx = \frac{x^3}{3}
$$
An inline formula typesets the moment you type the closing dollar sign, wherever you're writing — a rich-text page, a Markdown page, or a bullet on an outline. You don't have to leave the sentence, reload, or switch views to see it.
A block equation works the same way. On a rich-text page, or a Markdown page in the Formatted
view, type $$, press Return, type the formula — on as many lines as it needs — press
Return again, and type $$: the moment the second dollar sign of that last line goes in,
the lines become a centered equation, and the cursor waits on the line below it. A line of the
formula that starts with a plus or minus sign stays part of it; it doesn't become a bullet. A short one can go
on a single line of its own, as $$\frac{a}{b}$$. The two $$ lines need
the formula between them, with no empty line, and nothing else on their own lines.
MojoPad is careful about what counts as math: everyday prices like “it costs $5 and $10” stay
plain text. A closing dollar sign has to sit tight against the formula, and can't be followed by a
digit — so prose about money is never mistaken for an equation. Two dollar signs in a sentence stay
two dollar signs, and so does a $$ line with no $$ line above it, and
anything you type in code. If you did mean the dollar signs literally, press ⌘Z once and the
text comes back exactly as you typed it. A pair of $$ lines kept as text that way stays
text, and an equation you start below it takes in only its own lines, never the words in between.
The / menu has both, too: type /math and choose Inline math or
Math block (/equation finds the block as well). Inline math asks for the
formula and puts it where your cursor was; Math block opens an empty equation to write in.
Click a block equation to open its editor — the LaTeX on top, a live preview below — then press Escape, ⌘Return, or Done to close it. Click an inline formula to edit its LaTeX in a quick box. A mistake renders in red, right where it is, so you can fix it in place.
When you clip or import a page that has equations — a Wikipedia article, a paper, a reference page — MojoPad captures the real math and rebuilds it as live, crisp formulas in your note, instead of dropping it or leaving a fuzzy image. The equations are then yours to edit like any other, and they travel into your exports the same way.
On Markdown pages, math is simply $…$ and $$…$$ in the source, so it
round-trips cleanly and stays readable as plain text. And it's baked into your exports: equations
appear correctly in your PDF, HTML, and static-site exports (with the fonts embedded, so they
work offline anywhere), and as MathML in ePub — so they render in your e-reader too.