Why a computer scientist created a legendary typesetting system to save his own books.
In short: In 1977, Donald Knuth was so disappointed by the inferior quality of his own typeset work that he decided to build a better system from scratch. The result was TeX, a sophisticated, stable, and Turing-complete language that became the gold standard for scientific and mathematical publishing worldwide.
Donald Knuth began developing TeX after receiving galley proofs for the second edition of his book, The Art of Computer Programming, in March 1977. He found the output inferior to the classic hot metal typesetting used for the first volume in 1968. By May 1977, he had outlined the system's features, aiming to create software that would produce identical, high-quality results on any computer, forever. The first version, TeX78, was written in the SAIL language for the PDP-10, while a complete rewrite, TeX82, introduced fixed-point arithmetic to ensure cross-platform reproducibility.
The system is renowned for its globally optimizing line-breaking algorithm, developed by Knuth and Michael Plass. Unlike greedy algorithms that make local decisions, this approach evaluates all possible breakpoints in a paragraph to minimize 'badness'—a mathematical value representing visual quality. This logic, which handles hyphenation and spacing with extreme precision, has been adopted by professional tools like Adobe InDesign. TeX also uses an idiosyncratic versioning system that asymptotically approaches π; since version 3.0, the design has been frozen, with only bug fixes permitted to maintain long-term stability.
TeX is more than a program; it is a macro-based, Turing-complete language. Its power is often harnessed through formats like LaTeX, which adds support for structured documents and automatic numbering. Because TeX is free and highly portable, it allowed researchers to exchange complex scientific papers over the early internet, eventually enabling the creation of repositories like arXiv. Knuth remains so committed to the system's integrity that he offers monetary rewards for reported bugs, though he has paid out very little due to the software's extreme stability. Upon his death, he intends to finalize the version number to π, declaring all remaining bugs to be features.
Opens the Intellect+ feed with this card first. Swipe up for the next one.
Sources
- Summary by Intellect · source: TeX
To cite this card, link to https://intellectplus.co.uk/app/technology-tex.
How we source, check and correct cards: Editorial standards.
General information, not professional advice. Spotted an error? Flag the card or see corrections and complaints.
Intellect Plus is a visual educational discovery platform for exploring fascinating facts and ideas. Brain Food, Not Brain Rot. What is Intellect Plus?
Related
More in Computing and information technology · More in Technology · Latest · A–Z · All topics