Cette page est affichée en anglais. Une traduction française est en cours.
ScriptsApr 12, 2026·2 min de lecture

Typst — Modern Markup-Based Typesetting System

Typst is a new markup-based typesetting system that is powerful and easy to learn. A modern alternative to LaTeX with fast incremental compilation, friendly error messages, and a scripting language built in. Write beautiful papers, theses, and documents without the LaTeX pain.

Introduction

Typst is a new markup-based typesetting system designed as a modern alternative to LaTeX. Written in Rust by Martin Haug and Laurenz Maedje (started as a master thesis project at TU Berlin). Typst compiles incrementally in milliseconds (vs LaTeX minutes), has friendly error messages, and includes a built-in scripting language for templates and automation.

What Typst Does

  • Markup — lightweight syntax for headings, emphasis, lists, links
  • Math$ ... $ for equations with intuitive syntax
  • Scripting — built-in programming language (variables, loops, functions)
  • Templates — create and share reusable document templates
  • Bibliography — BibTeX and Hayagriva support
  • Figures and tables — numbered, captioned, cross-referenced
  • Incremental compilation — sub-second rebuilds
  • Error messages — human-readable with line/column info
  • PDF output — production-quality PDF
  • typst.app — collaborative online editor

Architecture

Rust compiler: source → AST → layout → PDF. Incremental: only recomputes changed pages. Scripting engine evaluates Typst code at compile time for dynamic content generation. Font subsetting and PDF/A compliance built in.

Self-Hosting

CLI tool + optional typst.app (collaborative SaaS).

Key Features

  • Millisecond compilation
  • Readable markup syntax
  • Built-in math typesetting
  • Scripting language
  • Templates and packages
  • Bibliography support
  • Friendly errors
  • PDF output
  • Live watch mode
  • Collaborative editor (typst.app)

Comparison

System Compilation Syntax Scripting
Typst Milliseconds Easy Built-in
LaTeX Seconds-minutes Complex TeX macros
Markdown + Pandoc Fast Simple Limited
Asciidoc Fast Medium Macros
Groff Fast Arcane Macros

FAQ

Q: Can it replace LaTeX? A: For 80% of academic writing, yes. A few advanced LaTeX features (specific journal templates, complex TikZ graphics) are not yet supported. Typst is catching up fast.

Q: How is math formula support? A: Excellent. The syntax is more intuitive than LaTeX: $sum_(i=1)^n i = (n(n+1))/2$, no need to memorize \frac{}{}.

Q: Template ecosystem? A: typst.app has a community template library (IEEE, ACM, thesis, resume, letter). You can also customize and share your own .typ templates.

Sources

Discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires