English

LaTeX Compilation: Challenges in the Era of LLMs

Computation and Language 2026-03-12 v4

Abstract

As large language models (LLMs) increasingly assist scientific writing, limitations and the significant token cost of TeX become more and more visible. This paper analyzes TeX's fundamental defects in compilation and user experience design to illustrate its limitations on compilation efficiency, generated semantics, error localization, and tool ecosystem in the era of LLMs. As an alternative, Mogan STEM, a WYSIWYG structured editor, is introduced. Mogan outperforms TeX in the above aspects by its efficient data structure, fast rendering, and on-demand plugin loading. Extensive experiments are conducted to verify the benefits on compilation/rendering time and performance in LLM tasks. Furthermore, we show that due to Mogan's lower information entropy, it is more efficient to use .tmu (the document format of Mogan) to fine-tune LLMs than TeX. Therefore, we launch an appeal for larger experiments on LLM training using the .tmu format.

Keywords

Cite

@article{arxiv.2603.02873,
  title  = {LaTeX Compilation: Challenges in the Era of LLMs},
  author = {Tianyou Liu and Ziqiang Li and Xurui Liu and Yu Wu and Yansong Li},
  journal= {arXiv preprint arXiv:2603.02873},
  year   = {2026}
}

Comments

25 pages, 12 figures