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
| Description | Typst | LaTeX |
|---|---|---|
| Fraction | a / b | \frac{a}{b} |
| Subscript | x_1 | x_1 |
| Superscript | x^2 | x^2 |
| Square root | sqrt(x) | \sqrt{x} |
| Sum | sum_(i=1)^n | \sum_{i=1}^n |
| Integral | integral_0^infinity | \int_0^\infty |
| Greek letter | alpha, beta, gamma | \alpha, \beta, \gamma |
| Matrix | mat(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,thickfor 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