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
Templates
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.

WhatLaTeXTypst
Fraction\frac{a}{b}frac(a, b)
Square and n-th root\sqrt{x} + \sqrt[3]{y}sqrt(x) + root(3, y)
Sub- and superscriptx_{i}^{2}x_i^2
Greek letters\alpha \beta \varepsilon \Omegaalpha beta epsilon Omega
Sum and integral\sum_{i=1}^{n} \int_0^1sum_(i = 1)^n integral_0^1
Relations\leq \geq \neq \approx \inlt.eq gt.eq eq.not approx in
Arrows\to \Rightarrow \iff \mapstoarrow.r arrow.r.double arrow.l.r.double.long arrow.r.bar
Font styles\mathbb{R} \mathbf{v} \mathcal{L} \mathrm{d}xbb(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

  1. Step 1: Paste the LaTeX

    A formula, or rows from aligned, align or cases. The preview shows the LaTeX as written.

  2. Step 2: Check the notes

    Anything that did not translate exactly is listed under the Typst output.

  3. 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.

Moving math to Typst?

Convert LaTeX to Typst