LaTeX Compilation: Challenges in the Era of LLMs

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Liu, Tianyou, Li, Ziqiang, Liu, Xurui, Wu, Yu, Li, Yansong
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908877485768704
author Liu, Tianyou
Li, Ziqiang
Liu, Xurui
Wu, Yu
Li, Yansong
author_facet Liu, Tianyou
Li, Ziqiang
Liu, Xurui
Wu, Yu
Li, Yansong
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2603_02873
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle LaTeX Compilation: Challenges in the Era of LLMs
Liu, Tianyou
Li, Ziqiang
Liu, Xurui
Wu, Yu
Li, Yansong
Computation and Language
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.
title LaTeX Compilation: Challenges in the Era of LLMs
topic Computation and Language
url https://arxiv.org/abs/2603.02873