Typst vs. TeX: A Comparison of Layout Models and a Look Ahead
2025-02-14
This article explores the differences in layout models between the typesetting engines Typst and TeX. TeX, based on boxes and glue, is flexible but lacks awareness of precise positions; Typst uses a region model, allowing elements to react to their position but sacrificing some flexibility. The author analyzes the strengths and weaknesses of both models and points out that Typst, by introducing a re-layout mechanism, is expected to balance flexibility and optimization, addressing current shortcomings in handling complex layouts (such as wrap-around images and pageable tables).
Development
typesetting engine