This LWN.net article introduces Typst, a modern, open-source typesetting program written in Rust, positioned as a strong potential replacement for the long-established LaTeX. The author outlines the long-standing user frustrations with LaTeX, such as slow compilation, cryptic error messages, and an arcane macro language. Typst is presented as a solution that addresses these issues with a simpler, Markdown-like syntax, extremely fast incremental compilation for live previews, and clear, actionable error reporting.
The article details Typst's technical advantages, including a modern, deeply integrated scripting language that makes customization far more accessible than in LaTeX. While acknowledging Typst's current drawbacks—namely a smaller package ecosystem, a lack of official support from academic journals, and immature documentation—the author concludes that Typst is already a highly practical and powerful tool for real-world use. It is praised for its excellent tooling and is predicted to eventually succeed LaTeX as the standard for technical and academic document preparation.
Typst: A Modern Challenger to LaTeX's Dominance
A Modern Typesetting Solution: The article introduces Typst, a free, open-source program designed as a modern alternative to LaTeX. It is particularly well-suited for technical documents containing mathematics, tables, and figures, aiming for high-quality output with a more user-friendly experience.
Solving LaTeX's Core Problems: Typst directly addresses common complaints about LaTeX, including its slow compilation times, notoriously cryptic error messages, and the steep learning curve required for customization via its arcane macro language.
Simplified and Readable Markup: Typst uses a syntax inspired by Markdown, making it far less verbose and easier to read and write than traditional LaTeX code. It minimizes the heavy use of backslashes and curly brackets.
Fast, Incremental Compilation: A standout feature is the watch command, which enables a responsive live preview by incrementally and automatically recompiling the document as the source file is changed. This speed is maintained even for large, book-length documents.
Clear and Precise Error Messages: When users make syntax errors, Typst provides colored, easy-to-understand error messages that clearly indicate the exact location of the problem, a dramatic improvement over LaTeX's error reporting.
Integrated and Powerful Scripting: Customization in Typst is handled through a modern, built-in scripting language that is seamlessly integrated into the system. This makes tasks like changing fonts or heading styles much simpler than in LaTeX.
Current Drawbacks and Limitations: As a relatively new project, Typst has some disadvantages. Its package ecosystem is small compared to LaTeX's vast collection, and almost no academic journals currently offer official Typst templates for submissions. The official documentation is also noted as being confusing and sometimes out-of-date.
Practical for Use Today: Despite its youth, the author finds Typst to be an excellent and useful tool for current projects. For journal submissions, a workflow using Typst for writing and then converting the document to LaTeX using Pandoc is a viable solution.