Have a screenshot? Convert it to LaTeX
LaTeX to Typst Converter
Paste LaTeX math, a single formula or a block of aligned equations, and copy the Typst syntax. Anything without a Typst equivalent is flagged, not guessed.
- Free, no sign-up
- Matrices, cases and aligned rows
- Unknown commands flagged
Block equation: spaces inside the $ … $.
LaTeX and Typst math syntax compared
Each Typst column is the converter’s own output for the LaTeX beside it. Click a LaTeX example to load it.
| What | LaTeX | Typst |
|---|---|---|
| Fraction | \frac{a}{b} | frac(a, b) |
| Square and n-th root | \sqrt{x} + \sqrt[3]{y} | sqrt(x) + root(3, y) |
| Sub- and superscript | x_{i}^{2} | x_i^2 |
| Greek letters | \alpha \beta \varepsilon \Omega | alpha beta epsilon Omega |
| Sum and integral | \sum_{i=1}^{n} \int_0^1 | sum_(i = 1)^n integral_0^1 |
| Relations | \leq \geq \neq \approx \in | lt.eq gt.eq eq.not approx in |
| Arrows | \to \Rightarrow \iff \mapsto | arrow.r arrow.r.double arrow.l.r.double.long arrow.r.bar |
| Font styles | \mathbb{R} \mathbf{v} \mathcal{L} \mathrm{d}x | bb(R) bold(v) cal(L) upright(d) x |
| Accents | \hat{x} \vec{v} \bar{y} \dot{x} | hat(x) arrow(v) macron(y) dot(x) |
| Text in math | \text{if } x > 0 | "if " x > 0 |
| Operator name | \operatorname{Var}(X) | op("Var") (X) |
| Matrix | \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} | mat(delim: "[", 1, 0; 0, 1) |
| Cases | \begin{cases} x & x \ge 0 \\ -x & x < 0 \end{cases} | cases(x & x gt.eq 0, -x & x < 0) |
| Aligned equations | \begin{aligned} a &= b \\ &= c \end{aligned} | a & = b \ & = c |
| Auto-size brackets | \left( \frac{a}{b} \right) | lr(( frac(a, b) )) |
| Binomial | \binom{n}{k} | binom(n, k) |
How to convert LaTeX to Typst
Step 1: Paste the LaTeX
A formula, or rows from aligned, align or cases. The preview shows the LaTeX as written.
Step 2: Check the notes
Anything that did not translate exactly is listed under the Typst output.
Step 3: Copy into Typst
Copy Typst gives you the math wrapped in $ … $, with spaces inside for a block equation.
LaTeX to Typst questions
- How do I convert LaTeX math to Typst?
- Paste the formula or an aligned block into the box above. The Typst tab shows the translation wrapped in $ … $; press Copy Typst and paste it into your .typ file.
- What does it translate?
- Fractions, roots, scripts and limits, Greek letters and the common operator, relation and arrow symbols, \mathbb / \mathbf / \mathcal and other font commands, accents, \text and \operatorname, \left … \right, matrices (pmatrix, bmatrix, vmatrix and others), cases and aligned / align / gather rows.
- What if something cannot be translated?
- The converter does not guess. An unknown command is written as visible text such as "\foo" so the formula still compiles and you can spot it, and a note under the output names it. Things that change slightly, such as a dropped \displaystyle or \tag, are listed as approximations.
- Which Typst version is the output for?
- Current Typst (0.14 and later) symbol names, such as inter for ∩ and chevron.l for ⟨. Symbols whose Typst name is newer than 0.14 are written as the Unicode character, which Typst accepts in math. We checked the translations by compiling them with Typst 0.14.2.
- Can it convert a whole LaTeX document to Typst?
- No, only math. For documents with a preamble, sections, figures and a bibliography, Pandoc can write Typst (pandoc paper.tex -o paper.typ); you can then tidy the equations here. The mitex package on Typst Universe is another option if you want to keep writing LaTeX math inside Typst.
- Why are there spaces between letters, like 4 a c?
- In Typst math, letters written together form one name (ac would be read as a variable called ac), so single letters are separated by spaces. The spaces do not show in the output.
More free LaTeX tools
- Image to LaTeX converterPaste a screenshot or photo of a formula and get its LaTeX.
- LaTeX equation editorSymbol panel, live preview and every export in one place.
- LaTeX to PNG and SVGFormula images with a transparent background.
- LaTeX to MathMLMathML for web pages, Word and screen readers.
- LaTeX to HTMLA MathML or inline SVG snippet for any page.
- LaTeX to UnicodePlain-text math for chat, email and code comments.
- LaTeX table generatorBuild a table visually, copy LaTeX, Markdown or HTML.