TeX/LaTeX Document
TEX files contain plain-text documents written in the LaTeX typesetting language. LaTeX excels at producing publication-quality mathematical notation, scientific papers, theses, and technical books. The source file is compiled into PDF, DVI, or PostScript output.
MIME Type
application/x-tex
Type
Text
Compression
Lossless
Advantages
- + 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
Disadvantages
- − Steep learning curve for non-technical users
- − Compilation step required before viewing output
- − Collaborative editing is harder than with DOCX or Google Docs
When to Use .TEX
Use LaTeX for academic papers, theses, technical documentation, and any document requiring precise mathematical typesetting.
Technical Details
A .tex file is plain text with macro commands (e.g., \section, \begin). The LaTeX compiler resolves macros, typesets paragraphs, and generates a device-independent output. Packages extend functionality for math, graphics, bibliographies, and more.
History
Donald Knuth created TeX in 1978 to typeset his book The Art of Computer Programming. Leslie Lamport built LaTeX on top of TeX in 1984 to simplify document preparation, and it became the standard in academia.