.tex
Document
TeX/LaTeX 文档
TEX 文件包含使用 LaTeX 排版语言编写的纯文本文档。LaTeX 擅长生成出版级的数学符号、科学论文、学位论文和技术书籍。源文件经编译后输出为 PDF、DVI 或 PostScript。
MIME 类型
application/x-tex
类型
文本
压缩
无损
优点
- + Unmatched quality for mathematical equations and scientific notation
- + Automatic numbering of sections, figures, equations, and references
- + Version-control friendly — plain text diffs work perfectly
- + Massive package ecosystem (CTAN) for specialized needs
缺点
- − Steep learning curve for non-technical users
- − Compilation step required before viewing output
- − Collaborative editing is harder than with DOCX or Google Docs
何时使用 .TEX
使用 LaTeX 编写学术论文、学位论文、技术文档以及任何需要精确数学排版的文档。
技术细节
.tex 文件是包含宏命令(如 \section、\begin)的纯文本。LaTeX 编译器解析宏、排版段落并生成设备无关的输出。宏包可扩展数学、图形、参考文献等功能。
历史
Donald Knuth 于 1978 年创建了 TeX,用于排版他的著作《计算机程序设计艺术》。Leslie Lamport 于 1984 年在 TeX 之上构建了 LaTeX 以简化文档准备,后来成为学术界的标准。