Math Typesetting

Beautiful Math Equations

Write publication-quality math with instant preview. Cleaner than LaTeX, just as powerful.

Features

Instant Preview

See your equations render in real-time as you type.

Clean Syntax

LaTeX-like math syntax that's easier to read and write.

Full Symbol Support

All mathematical symbols, Greek letters, and operators.

Numbered Equations

Automatic equation numbering with cross-references.

Typst vs LaTeX Syntax

DescriptionTypstLaTeX
Fractiona / b\frac{a}{b}
Subscriptx_1x_1
Superscriptx^2x^2
Square rootsqrt(x)\sqrt{x}
Sumsum_(i=1)^n\sum_{i=1}^n
Integralintegral_0^infinity\int_0^\infty
Greek letteralpha, beta, gamma\alpha, \beta, \gamma
Matrixmat(1, 2; 3, 4)\begin{pmatrix}...\end{pmatrix}

Example Equations

Quadratic Formula
$x = (-b plus.minus sqrt(b^2 - 4a c)) / (2a)$
Euler's Identity
$e^(i pi) + 1 = 0$
Gaussian Integral
$integral_(-infinity)^infinity e^(-x^2) dif x = sqrt(pi)$
Maxwell's Equations
$nabla times bold(E) = -diff bold(B)/diff t$
Quick Tips
  • Inline math: Use single $...$ for inline equations
  • Display math: Use $ ... $ on its own line for centered display
  • Spaces: Use thin, med, thick for spacing control
  • Text in math: Use "text" for text within equations

Frequently Asked Questions

Is Typst math compatible with LaTeX?

The syntax is similar but cleaner. Most concepts translate directly—fractions, subscripts, Greek letters all work as expected.

How do I number equations?

Wrap display math in an equation block: `$ ... $ <label>` and reference with `@label`.

Can I align multiple equations?

Yes, use the `cases` or `aligned` environments for multi-line aligned equations.

What about matrices?

Use `mat(a, b; c, d)` for matrices. Much cleaner than LaTeX's matrix environments.

Ready to Write Beautiful Math?

Start typing and see your equations render instantly.

Try Math Editor Free
Math Equations in Typst 2026 | Beautiful Math Typesetting | TypeTeX | TypeTeX