# LaTeX

**LaTeX**——其名称读作“Lah-tech”或“Lay-tech”，与“blech”或“Bertolt Brecht”押韵——是一套用于排版高质量文档的系统，最常用于中型到大型的科技与科学作品，不过它几乎适用于任何类型的出版<sup>[1](https://www.latex-project.org/about/)</sup>。从技术上说，它是TeX排版程序的一个广泛使用的宏包（或称格式），提供基本的文档格式化命令，并由大量贡献包加以扩展<sup>[2](https://ctan.org/pkg/latex?lang=en)</sup>。LaTeX是自由软件，依据LaTeX项目公共许可证分发<sup>[1](https://www.latex-project.org/about/)</sup>。

| 关键事实 | 详情 |
|---|---|
| 它是什么 | 一个TeX宏包（格式），提供文档格式化命令，并由广泛的包加以扩展<sup>[2](https://ctan.org/pkg/latex?lang=en)</sup> |
| 创建者 | 莱斯利·兰波特（Leslie Lamport），其最后一个发行版为LaTeX 2.09；当前的LaTeX于1994年6月取代了它<sup>[2](https://ctan.org/pkg/latex?lang=en)</sup> |
| 底层程序 | TeX，由斯坦福大学的唐纳德·克努特（Donald Knuth）于1977年5月开始开发<sup>[3](https://www.latex-project.org/help/books/tlc3-digital-chapter-samples.pdf)</sup> |
| 许可证 | LaTeX项目公共许可证1.3c；版权所有1989–2026 The LaTeX 3 Project等<sup>[2](https://ctan.org/pkg/latex?lang=en)</sup> |
| 当前版本 | 2026-06-01，由LaTeX项目团队维护<sup>[2](https://ctan.org/pkg/latex?lang=en)</sup> |
| 常用编译器 | pdfLaTeX（默认）、XeLaTeX和LuaLaTeX，各自是在不同TeX引擎上运行的LaTeX宏<sup>[4](https://www.overleaf.com/learn/latex/Articles/What%27s_in_a_Name%3A_A_Guide_to_the_Many_Flavours_of_TeX)</sup> |
| 发行版 | TeX Live和MiKTeX都包含LaTeX（分别以`latex`和`ltxbase`形式提供）<sup>[2](https://ctan.org/pkg/latex?lang=en)</sup> |

## 工作原理

LaTeX不是文字处理器。它不让作者直接选择字体和版面，而是要求作者标明内容是什么：源文件声明文档类、标题、作者和日期，系统则套用一致的设计。LaTeX项目的入门介绍给出了一个示例：用`\documentclass{article}`、`\title{...}`、`\author{...}`和`\date{...}`声明文档，随后在`\begin{document}`与`\end{document}`之间写正文<sup>[1](https://www.latex-project.org/about/)</sup>。其陈述的理由是，文档设计应交给文档设计师，而作者应专注于内容；该项目认为，在传统系统中，作者把时间花在设计决策上，结果却做出设计糟糕的文档<sup>[1](https://www.latex-project.org/about/)</sup>。

该宏包运行在TeX引擎之上。TeX本身是一种为排版而设计的计算机语言和解释器，尤其适用于数学及其他技术材料；克努特于1977年5月开始开发它，并在《The TeXbook》中将其描述为旨在创造精美的书籍，尤其是包含大量数学内容的书籍<sup>[3](https://www.latex-project.org/help/books/tlc3-digital-chapter-samples.pdf)</sup><sup> • </sup><sup>[5](https://www.tug.org/whatis.html)</sup>。由于每份文档都重新读取LaTeX的全部核心宏会很慢，引擎会加载一个预编译的二进制格式文件，例如`lualatex.fmt`，其中存储了处理过的宏定义<sup>[6](https://www.overleaf.com/learn/latex/Articles/The_two_modes_of_TeX_engines%3A_INI_mode_and_production_mode)</sup>。

## 特性

LaTeX项目将该系统的核心能力列为：排版期刊论文、技术报告、书籍和幻灯片演示；通过分节、交叉引用、表格和图形来控制大型文档；排版复杂的数学公式，并通过AMS-LaTeX支持高等数学；自动生成参考文献和索引；多语言排版；插入插图以及专色或印刷色；以及使用[PostScript](https://www.edgepedia.org/zh/postscript)或[Metafont](https://www.edgepedia.org/zh/metafont)字体<sup>[1](https://www.latex-project.org/about/)</sup>。

其应用远远超出数学领域，涵盖一页备忘录、商务与私人信件、通讯、文章，以及横跨科学与人文的书籍，直至大型参考工具书；几乎每种计算机和操作系统都有相应版本<sup>[3](https://www.latex-project.org/help/books/tlc3-digital-chapter-samples.pdf)</sup>。

## 历史

**起源。** 斯坦福大学的数学家唐纳德·克努特于1977年开始创建TeX，作为改进排版（尤其是数学排版）的工具<sup>[3](https://www.latex-project.org/help/books/tlc3-digital-chapter-samples.pdf)</sup><sup> • </sup><sup>[7](https://tug.ctan.org/info/latexcourse-rug/latexcourse-rug.pdf)</sup>。20世纪80年代初，[莱斯利·兰波特](https://www.edgepedia.org/zh/leslie-lamport)提供了一组宏，增加了自动章节编号、脚注和自动交叉引用等功能<sup>[7](https://tug.ctan.org/info/latexcourse-rug/latexcourse-rug.pdf)</sup>。

**LaTeX 2.09。** 第一个广泛可用的版本编号为2.09，出现于1985年<sup>[8](https://www.latex-project.org/publications/2001-CAR-LaTeX-legacy.pdf)</sup>。兰波特与艾迪生-韦斯利（Addison-Wesley）的彼得·戈登（Peter Gordon）合作，使其广泛分发，这对克努特TeX系统超越最初滋养其发展的北美数学家群体传播开来起到了核心作用<sup>[8](https://www.latex-project.org/publications/2001-CAR-LaTeX-legacy.pdf)</sup>。TUGboat的一份时间线将LaTeX（L. Lamport）定于1984年，[BibTeX](https://www.edgepedia.org/zh/bibtex)（O. Patashnik）也定于1984年<sup>[9](https://www.tug.org/TUGboat/tb25-1/tb80complete.pdf)</sup>。

**LaTeX2e。** 当前的LaTeX于1994年6月取代了2.09版<sup>[2](https://ctan.org/pkg/latex?lang=en)</sup>；TUGboat的一份时间线将LaTeX 2ε归功于弗兰克·米特尔巴赫（Frank Mittelbach）及其同事，时间为1994年<sup>[9](https://www.tug.org/TUGboat/tb25-1/tb80complete.pdf)</sup>。自2000年起，内核转为每年发布，通过LaTeX2e News通讯公布；2024/11/01期标志着LaTeX2e三十周年<sup>[10](https://latex-project.org/news/latex2e-news/)</sup>。自2015/01/01版起，`latexrelease`包让用户能够模拟较旧或较新的格式版本，而无需重新生成它们<sup>[10](https://latex-project.org/news/latex2e-news/)</sup>。

## 引擎与编译器

pdfLaTeX、XeLaTeX和LuaLaTeX这类名称本身并不是引擎；每一个都表示由哪个TeX引擎运行LaTeX宏集合：pdfLaTeX使用pdfTeX，XeLaTeX使用XeTeX，LuaLaTeX使用LuaTeX<sup>[4](https://www.overleaf.com/learn/latex/Articles/What%27s_in_a_Name%3A_A_Guide_to_the_Many_Flavours_of_TeX)</sup>。pdfLaTeX是Overleaf上的默认且最常用的编译器，支持`.png`、`.jpg`和`.pdf`图像，并即时将`.eps`转换为`.pdf`；较旧的LaTeX编译器仅支持`.eps`和`.ps`图像；XeLaTeX和LuaLaTeX稳健支持UTF-8以及TrueType和OpenType字体，这使它们成为非拉丁文字的首选<sup>[11](https://docs.overleaf.com/getting-started/recompiling-your-project/selecting-a-tex-live-version-and-latex-compiler)</sup>。

由乔纳森·丘（Jonathan Kew）开发的XeTeX原生读取UTF-8编码的Unicode文本，并借助其内置的HarfBuzz整形引擎，支持OpenType和SIL的Graphite技术等现代字体格式<sup>[12](https://www.overleaf.com/learn/latex/XeLaTeX)</sup>。LuaTeX源自pdfTeX，增加了Lua脚本语言，以实现对引擎的精细控制<sup>[4](https://www.overleaf.com/learn/latex/Articles/What%27s_in_a_Name%3A_A_Guide_to_the_Many_Flavours_of_TeX)</sup>。LaTeX项目用三个引擎测试该格式：pdfTeX、XeTeX和LuaTeX；LuaTeX在为结构打标签方面提供最大的灵活性，而XeTeX已不再维护，仅获得尽力而为的支持，不添加新功能<sup>[13](https://www.latex-project.org/news/2024/11/01/issue40-of-latex2e-released/)</sup>。

## 参考文献

LaTeX文档通过两条主要途径管理引用。BibTeX以通用形式将引用数据存储在`.bib`文件中，并按文档指定的样式打印引用；BibTeX本身不了解Unicode排序，不过其变体`bibtex8`和`bibtexu`分别处理8位和Unicode字符集<sup>[14](https://ctan.org/pkg/bibtex/?lang=en)</sup>。默认情况下，一份LaTeX文档只包含一个参考文献表，而`chapterbib`和`multibib`等包提供按章编排的参考文献表或多个参考文献表<sup>[15](https://www.overleaf.com/learn/latex/Questions/Creating_multiple_bibliographies_in_the_same_document)</sup><sup> • </sup><sup>[16](https://www.overleaf.com/learn/latex/Multibib)</sup>。

**BibLaTeX**是对LaTeX所提供的文献功能的完整重新实现，其格式完全由TeX宏控制，而非BibTeX样式文件，因此具备LaTeX实用知识就足以设计新的引用样式<sup>[17](https://www.ctan.org/pkg/biblatex?lang=de)</sup>。它使用自己的后端程序biber，该程序处理BibTeX格式的数据文件并执行排序和标签生成；配合biber，它提供完整的Unicode支持、使用Unicode排序算法的可定制排序、在一份文档中包含多个采用不同排序的参考文献表、细分或过滤的参考文献表，以及通过polyglossia和babel自动切换语言<sup>[17](https://www.ctan.org/pkg/biblatex?lang=de)</sup>。庞大的BibLaTeX样式家族涵盖了从APA、MLA到Nature、Vancouver以及法律引用的学科惯例<sup>[18](https://ctan.org/topic/biblatex?lang=en)</sup>。

## 发行版与编辑

LaTeX通常不会单独安装。主要发行版TeX Live包含TeX、LaTeX2e、ConTeXt、Metafont、MetaPost、BibTeX及许多其他程序的可执行文件，外加大量宏、字体和文档，并支持多种文字的排版；它可在GNU/Linux及其他Unix变体、macOS和Windows 10及更高版本上运行<sup>[19](https://tug.org/texlive/doc/texlive-en/texlive-en.html)</sup>。MiKTeX是另一个包含该格式的主要发行版<sup>[2](https://ctan.org/pkg/latex?lang=en)</sup>。Overleaf等在线服务提供基于浏览器的编辑和编译，其课程和文档已成为新用户的常见入门途径<sup>[11](https://docs.overleaf.com/getting-started/recompiling-your-project/selecting-a-tex-live-version-and-latex-compiler)</sup><sup> • </sup><sup>[20](https://www.overleaf.com/learn)</sup>。

## 无障碍与当前开发

LaTeX项目维护并开发该系统，其当前的大型项目是**LaTeX Tagged PDF**，始于2020年春季，并在当年的在线TUG会议上公布<sup>[21](https://latex-project.org/latex3/)</sup><sup> • </sup><sup>[22](https://www.latex-project.org/publications/indexbyyear/2025/)</sup>。这项历时多年的工作分为六个阶段，旨在让LaTeX在无需或仅需极少配置调整的情况下自动生成无障碍且可复用的PDF。到2025年，团队报告称LaTeX已能生成符合PDF/UA-2和WTPDF标准的无障碍PDF，能将MathML直接嵌入PDF以生成无障碍的STEM文档，并在面向无障碍输出时与约1000个扩展包协同工作<sup>[22](https://www.latex-project.org/publications/indexbyyear/2025/)</sup>。自2025年6月起，已存在端到端工具链，用于生成和阅读数学内容带有MathML标签的PDF，包括转换为盲文<sup>[23](https://www.latex-project.org/publications/2025-UFi-FMi-TUB-tb143fischer-tagging25.pdf)</sup>。团队还发布了若干工具，例如一个将带标签PDF的结构树提取为XML的`texlua`脚本，以及用于验证的RelaxNG模式<sup>[24](https://www.latex-project.org/news/2025/01/29/pdf-structure/)</sup>。

## References

1. [An introduction to LaTeX, The LaTeX Project](https://www.latex-project.org/about/)
2. [CTAN: Package LaTeX](https://ctan.org/pkg/latex?lang=en)
3. [The LaTeX Companion, 3rd edition, Chapter 1 sample, The LaTeX Project](https://www.latex-project.org/help/books/tlc3-digital-chapter-samples.pdf)
4. [What's in a Name: A Guide to the Many Flavours of TeX, Overleaf](https://www.overleaf.com/learn/latex/Articles/What%27s_in_a_Name%3A_A_Guide_to_the_Many_Flavours_of_TeX)
5. [Just what is TeX?, TeX Users Group](https://www.tug.org/whatis.html)
6. [The two modes of TeX engines: INI mode and production mode, Overleaf](https://www.overleaf.com/learn/latex/Articles/The_two_modes_of_TeX_engines%3A_INI_mode_and_production_mode)
7. [A LaTeX course, Chapter 1, CTAN](https://tug.ctan.org/info/latexcourse-rug/latexcourse-rug.pdf)
8. [The LaTeX Legacy: 2.09 and All That, Chris Rowley, 2001](https://www.latex-project.org/publications/2001-CAR-LaTeX-legacy.pdf)
9. [Practical TeX, TUGboat Volume 25 (2004), No. 1](https://www.tug.org/TUGboat/tb25-1/tb80complete.pdf)
10. [LaTeX2e Release Newsletters, The LaTeX Project](https://latex-project.org/news/latex2e-news/)
11. [Selecting a TeX Live version and LaTeX compiler, Overleaf docs](https://docs.overleaf.com/getting-started/recompiling-your-project/selecting-a-tex-live-version-and-latex-compiler)
12. [XeLaTeX, Overleaf](https://www.overleaf.com/learn/latex/XeLaTeX)
13. [LaTeX 2024-11-01 released and distributed, The LaTeX Project](https://www.latex-project.org/news/2024/11/01/issue40-of-latex2e-released/)
14. [CTAN: Package BibTeX](https://ctan.org/pkg/bibtex/?lang=en)
15. [Creating multiple bibliographies in the same document, Overleaf](https://www.overleaf.com/learn/latex/Questions/Creating_multiple_bibliographies_in_the_same_document)
16. [Multibib, Overleaf](https://www.overleaf.com/learn/latex/Multibib)
17. [CTAN: Paket BibLaTeX](https://www.ctan.org/pkg/biblatex?lang=de)
18. [CTAN: BibLaTeX topic](https://ctan.org/topic/biblatex?lang=en)
19. [The TeX Live Guide, TeX Users Group](https://tug.org/texlive/doc/texlive-en/texlive-en.html)
20. [Learn LaTeX, Overleaf](https://www.overleaf.com/learn)
21. [The LaTeX Project, LaTeX3](https://latex-project.org/latex3/)
22. [Articles published by the LaTeX project by year: 2025](https://www.latex-project.org/publications/indexbyyear/2025/)
23. [News from the Tagged PDF project: 2025, Fischer and Mittelbach, TUGboat 46:2](https://www.latex-project.org/publications/2025-UFi-FMi-TUB-tb143fischer-tagging25.pdf)
24. [Interpreting a PDF Structure Tree as XML, The LaTeX Project](https://www.latex-project.org/news/2025/01/29/pdf-structure/)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Application software by domain › Web browsers, clients, and user agents

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/latex-eprjrxnepa

English original: https://www.edgepedia.org/latex-eprjrxnepa
