Typst vs LaTeX: which one should you use?

LaTeX has been the standard for scientific writing for forty years. Typst is a newer typesetting system with a lighter syntax and a compiler that updates the PDF as you type. This guide puts the same document in both, chapter by chapter, and ends with a way to choose. TexWaller opens LaTeX and Typst projects, so you can try each example as you read.

Start for free

TexWaller is a free online editor for LaTeX and Typst, with nothing to install.

1. The short answer

Use LaTeX when someone else sets the rules: a journal, a conference or a university with its own class file. Use Typst when the document is yours, such as notes, reports, slides or a CV, and you want to write quickly and see the result at once.

Typst and LaTeX compared
LaTeXTypst
First released1984, on top of TeX (1978)2023, as open source
SyntaxCommands with backslashes and environmentsLight markup, with functions for the rest
CompilingSeveral passes over the whole documentIncremental: the PDF follows while you type
Error messagesOften far from the causePoint to the place, in plain words
PackagesThousands on CTAN, shipped with TeX LiveA growing collection on Typst Universe
Journals and conferencesAccepted almost everywhere, often requiredAccepted by few so far
Styling the documentMacros and packages in the preambleset and show rules, in the same language
Learning curveSteep, with a great deal of documentationGentle, with less material available

2. The same document in both

Here is a title, a section, some formatting and a list. In LaTeX everything is a command or an environment, and the document needs a class and a preamble before the text starts.

LaTeX
\documentclass{article} \usepackage{amsmath} \title{A short report} \author{Ada Lovelace} \begin{document} \maketitle \section{Introduction} This is \textbf{bold}, this is \emph{emphasised}. \begin{itemize} \item First point \item Second point \end{itemize} \end{document}

In Typst the common things have a short markup: = for a heading, asterisks for bold, underscores for emphasis, a hyphen for a list item. Anything else is a function call that starts with #.

Typst
#set document(title: "A short report", author: "Ada Lovelace") #set heading(numbering: "1.") #align(center, text(17pt)[*A short report*]) #align(center)[Ada Lovelace] = Introduction This is *bold*, this is _emphasised_. - First point - Second point

3. Math

LaTeX math is the notation most scientists already know, and many other tools accept it. Fractions, sums and accents are commands.

LaTeX
The mean is $\bar{x} = \frac{1}{n} \sum_{i=1}^{n} x_i$. \begin{equation} \label{eq:variance} \sigma^2 = \frac{1}{n} \sum_{i=1}^{n} (x_i - \bar{x})^2 \end{equation} Equation~\eqref{eq:variance} defines the variance.

Typst math reads closer to how you would say it: a slash makes a fraction, names such as sigma and sum need no backslash, and a space after the opening dollar sign turns an inline formula into a display one.

Typst
#set math.equation(numbering: "(1)") The mean is $overline(x) = 1/n sum_(i=1)^n x_i$. $ sigma^2 = 1/n sum_(i=1)^n (x_i - overline(x))^2 $ <eq:variance> @eq:variance defines the variance.

4. Figures, references and bibliography

Both systems number figures, resolve references and format the bibliography from a .bib file. LaTeX does it with floats, labels and a separate bibliography program.

LaTeX
\begin{figure}[htbp] \centering \includegraphics[width=0.7\textwidth]{images/plot.pdf} \caption{Error over time.} \label{fig:error} \end{figure} See Figure~\ref{fig:error} and \cite{knuth1984}. \bibliographystyle{plain} \bibliography{references}

Typst attaches the label to the figure and uses the same @ for references and citations. The bibliography is one function, with no extra program to run.

Typst
#figure( image("images/plot.svg", width: 70%), caption: [Error over time.], ) <fig:error> See @fig:error and @knuth1984. #bibliography("references.bib")
  • Typst reads the BibTeX files you already have, so a bibliography moves from one system to the other unchanged.
  • For drawings in the source, LaTeX has TikZ and pgfplots, with decades of examples; the Typst equivalents are younger.
  • For tables, both have a grid of cells: tabular in LaTeX, the table function in Typst.

5. Compiling and errors

LaTeX reads the whole document on every run, and needs more than one run, plus BibTeX or Biber, before references and bibliography are right. A long document takes seconds to minutes. An error may be reported many lines after its cause.

Typst compiles incrementally: after a change it redoes only what depends on it, so the PDF is ready in a fraction of a second even for long documents, and references are resolved in the same run. Its errors name the place and say what was expected.

6. Packages, templates and who accepts what

This is where LaTeX is hard to replace. Almost every journal, conference and university publishes a LaTeX class, and many accept only LaTeX or Word sources. CTAN holds thousands of packages, for anything from chemistry to chess.

Typst has a package and template collection, Typst Universe, that grows quickly, but few publishers accept Typst sources yet. Before you start a paper in Typst, check what the venue asks for: if it wants the source files, it almost certainly wants LaTeX.

  • Submitting to a journal or a conference: LaTeX, with the venue's template.
  • A thesis with an official university class: LaTeX.
  • Notes, reports, homework, a CV, slides: either; Typst is quicker to write.
  • A document you will hand over as a PDF only: either.

7. How to choose

Answer these questions in order and stop at the first yes.

  1. Does a publisher or a university require a LaTeX class or LaTeX sources? Use LaTeX.
  2. Do your co-authors already write LaTeX and not Typst? Use LaTeX.
  3. Do you rely on a LaTeX package with no Typst counterpart, such as a specific TikZ library? Use LaTeX.
  4. Is the document yours to format, and would you rather spend the time writing than debugging? Try Typst.

You don't have to pick one for life. Many people keep LaTeX for papers and use Typst for everything around them.

Questions about Typst and LaTeX

Is Typst faster than LaTeX?
At compiling, yes: Typst compiles incrementally and updates the PDF while you type, where LaTeX reads the whole document again on every run.
Is Typst going to replace LaTeX?
Not soon for publishing: journals, conferences and universities are built around LaTeX classes. For documents you format yourself, Typst is already a practical alternative.
Do journals accept Typst?
Few do so far. Most ask for LaTeX or Word sources, so check the author guidelines before you choose.
Can I convert a LaTeX document to Typst?
Converters such as Pandoc handle simple documents; anything that depends on LaTeX packages or macros has to be rewritten by hand. A BibTeX bibliography can be used as it is.
Is Typst math compatible with LaTeX math?
No. The notation is different: Typst writes a fraction with a slash and symbols without backslashes. The ideas are the same, so the switch takes little time.
Can I try both without installing anything?
Yes. TexWaller compiles LaTeX and Typst in your browser: create one project of each kind and compare them on your own text.

Keep reading

Try both on your own text

Create a free account, open a LaTeX project and a Typst project, and see which one you would rather write.

Start for free