paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Inconsistencies in TeX-Produced Documents

TeX 生成文档中的不一致性
ISSTA Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis2024匹配度 2/10 · 该论文是 TeX 生态的实证软件工程/测试研究,关注跨引擎与跨版本文档输出不一致及包缺陷发现,与用户画像中的静态分析、LLM/Agent、浮点程序分析和贝叶斯程序分析均无直接关联。虽然涉及自动化缺陷发现,但并非编程语言或程序分析方向的核心工作。引用 0 inbox
Jovyn Tan, Manuel Rigger
crossref: 2026-09-12

AI 速览

一句话:大规模量化 TeX 生态跨引擎/跨版本输出不一致,并用自动化流水线发现 LaTeX 包缺陷。

TeX 被广泛用于学术出版,但其生态中的不规则性可能导致同一文档在不同引擎或不同发行版下渲染不一致,违反格式规范或产生意外输出。本文对 432 份文档开展大规模研究,构建自动化流水线评估跨引擎与跨版本兼容性。结果显示,不同 TeX 引擎输出差异显著:XeTeX 与 PDFTeX 仅 0.2% 的文档编译结果完全相同;2020 至 2023 年的 TeX Live 发行版也只有 42.1% 的文档保持一致。该流水线还辅助缺陷发现:从 10 个不同根因样本中识别出 LaTeX 包中的 2 个新缺陷和 5 个已有缺陷。作者期望该研究帮助用户理解 TeX 生态中常未记录的细微差异,避免意外输出,并帮助开发者定位实现不一致。

问题
TeX 生态中不同引擎和不同发行版版本可能导致文档输出不一致,但这些不一致的严重程度与根因尚未被系统量化。
方法
构建自动化流水线,对 432 份文档进行跨 TeX 引擎与跨 TeX Live 版本的编译及输出比较,并辅助缺陷定位。
评估
测量跨引擎与跨版本的输出一致率,报告 XeTeX/PDFTeX 仅 0.2%、2020–2023 TeX Live 仅 42.1% 等结果;并从 10 个根因样本中发现 LaTeX 包缺陷。
原文摘要(Abstract)

TeX is a widely-used typesetting system adopted by most publishers and professional societies. While TeX is responsible for generating a significant number of documents, irregularities in the TeX ecosystem may produce inconsistent documents. These inconsistencies may occur across different TeX engines or different versions of TeX distributions, resulting in failures to adhere to formatting specifications, or the same document rendering differently for different authors. In this work, we investigate and quantify the robustness of the TeX ecosystem through a large-scale study of 432 documents. We developed an automated pipeline to evaluate the cross-engine and cross-version compatibility of the TeX ecosystem. We found significant inconsistencies in the outputs of different TeX engines: only 0.2% of documents compiled to identical output with XeTeX and PDFTeX due to a lack of cross-engine support in popular LaTeX packages and classes used in academic conferences. A smaller—yet significant—extent of inconsistencies was found across different TeX Live distributions, with only 42.1% of documents producing the same output from 2020 to 2023. Our automated pipeline additionally reduces the human effort in bug-finding: from a sample of 10 unique root causes of inconsistencies, we identified two new bugs in LaTeX packages and five existing bugs that were fixed independently of this study. We also observed potentially unintended inconsistencies across different TeX Live distributions beyond the updates listed in changelogs. We expect that this study will help authors of TeX documents to avoid unexpected outcomes by understanding how they may be affected by the often undocumented subtleties of the TeX ecosystem, while benefiting developers by demonstrating how different implementations result in unintended inconsistencies.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot8465,
  title = {Inconsistencies in TeX-Produced Documents},
  author = {Jovyn Tan and Manuel Rigger},
  booktitle = {ISSTA},
  year = {2024},
  doi = {10.1145/3650212.3680370}
}