Skip to content

LaTeX Math

Write mathematical equations in your markdown. Inkwell renders them with KaTeX — fast, beautiful, and offline.

Inline math

Wrap with single dollar signs:

markdown
The area of a circle is $A = \pi r^2$.

Display math

Wrap with double dollar signs:

markdown
$$\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}$$

Display math gets its own centered block.

What works

  • Greek letters: $\alpha$, $\beta$, $\gamma$
  • Fractions: $\frac{a}{b}$
  • Matrices: $\begin{pmatrix} a & b \\ c & d \end{pmatrix}$
  • Subscripts and superscripts: $x_i^2$
  • Everything KaTeX supports — full reference

Smart dollar sign handling

Inkwell won't turn your $50 or $PATH into math. The parser requires math expressions to start with a letter or backslash — plain dollar amounts and shell variables are left alone.

In exports

Math renders in both HTML and PDF exports. HTML exports load KaTeX fonts from a CDN for standalone viewing.