← Back to Guides
HistoryHistory of LaTeX
Published on 2026-02-22

History of LaTeX

The remarkable story of how Donald Knuth's frustration with typesetting led to TeX, and how Leslie Lamport's LaTeX became the universal standard for scientific publishing.

The story of LaTeX begins with one of the most influential computer scientists in history becoming so annoyed by ugly typesetting that he spent ten years writing a completely new typesetting system from scratch.

Donald Knuth and the Birth of TeX

In 1976, Donald Knuth — author of the legendary The Art of Computer Programming series — received galley proofs for the second edition of his second volume. He was dismayed. The transition from traditional lead type to early digital typesetting had produced output that, in his view, was aesthetically unacceptable. Mathematical formulas were poorly spaced. Ligatures were wrong. The kerning was off.

Knuth, characteristically, decided to fix this himself.

He estimated the project would take about six months. It took ten years.

TeX (pronounced “tech,” from the Greek τέχνη, meaning art or craft) was first released in 1978. Rather than being a word processor, TeX is a typesetting language — a programming language for describing the precise placement of every character on a page.

Knuth’s goal was mathematical perfection. He invented entirely new algorithms for:

  • Line breaking — the Knuth–Plass algorithm, still used in TeX today, finds globally optimal line breaks across an entire paragraph
  • Hyphenation — a pattern-based approach that handles most English hyphenation correctly
  • Font rendering — Knuth invented the METAFONT system for defining fonts mathematically

TeX’s version numbers converge to π. The current version is 3.14159265. When Knuth dies, the version will be frozen at π permanently.

Leslie Lamport and the Birth of LaTeX

TeX was powerful but difficult. Writing a TeX document meant specifying low-level typographic details directly. In 1984, computer scientist Leslie Lamport (later of Paxos and TLA+ fame) released LaTeX — a set of macros on top of TeX that provided a higher-level, document-oriented interface.

LaTeX introduced the concept of document classesbook, article, report — which encoded the typographic conventions of each document type. An author writing a journal article simply declares \documentclass{article} and LaTeX handles the rest: margins, font sizes, heading styles, section numbering.

The key insight of LaTeX was the separation of content and formatting. Authors write:

$$\section{Introduction} This paper presents a novel approach to...$$

Rather than:

{\Large\bfseries\raggedright 1.\quad Introduction\par}
\vspace{6pt}
\normalsize\noindent This paper presents...

This separation made LaTeX vastly more accessible and maintainable.

LaTeX as the Standard for Science

Through the late 1980s and 1990s, LaTeX became the de facto standard for scientific publishing, driven by several forces:

  1. Journal adoption — major publishers (Elsevier, Springer, ACM, IEEE) adopted LaTeX and provided templates
  2. arXiv — the physics and mathematics preprint server (founded 1991) required LaTeX submissions, normalising it across entire fields
  3. Package ecosystem — the CTAN (Comprehensive TeX Archive Network, founded 1992) provided hundreds of packages for specialised needs: chemistry (mhchem), music notation (LilyPond), chess diagrams, electrical circuits
  4. Quality — compared to Microsoft Word’s equation editor, LaTeX produced dramatically superior mathematical typesetting

Today, virtually all mathematics, theoretical physics, statistics, and computer science papers are written in LaTeX.

The Rise of Alternatives

LaTeX’s dominance in academia doesn’t mean it’s perfect. Its criticisms are well-known:

  • Steep learning curve — a new user must learn a programming language just to write a document
  • Opaque error messages — LaTeX error messages are notoriously cryptic
  • Slow compilation — complex documents can take many seconds or minutes to compile
  • Collaborative editing — unlike Google Docs, LaTeX doesn’t support real-time collaboration natively

Modern alternatives have emerged to address these:

Tool Approach Status
Overleaf LaTeX in the browser with real-time collaboration Dominant in academia
Typst New typesetting language with better error messages (2023) Growing fast
KaTeX LaTeX math in the browser, no installation Standard for web docs
MathJax LaTeX math rendering via JavaScript Used in older systems
Quarto Markdown + KaTeX + R/Python + LaTeX output Popular in data science

KaTeX: LaTeX Math for the Web

KaTeX was developed by Khan Academy and released in 2013. It implements a large subset of LaTeX’s mathematical notation rendering in JavaScript — enabling LaTeX math to appear in web pages without any installation.

KaTeX is now the standard for:

  • Mathematical notation in Markdown documents
  • Interactive education platforms (Khan Academy, Brilliant)
  • Documentation systems (GitBook, Docusaurus, this editor)
  • Scientific notebooks (Jupyter)

KaTeX supports inline math ($...$), display math ($$...$$), and an extensive library of mathematical symbols, operators, and environments.

LaTeX Today

Although younger tools are gaining ground, LaTeX remains irreplaceable in academia for several reasons:

  • Decades of journal-specific templates exist only for LaTeX
  • The output quality of TeX’s line-breaking and mathematical typesetting is still unmatched
  • The entire scientific literature is archived in LaTeX source, providing continuity

Knuth’s ten-year detour to fix typesetting has produced software that has shaped how science is communicated for forty years — and will likely continue to do so for many more.