A man made a way to print books. 
A man named Donald Knuth made a tool for books. 
Donald Knuth created a tool called TeX. 
TeX is very good at math. It can handle complex math formulas with ease.
TeX works in a few steps. First, it reads the text you write. Then, it swaps your commands for text. Next, it builds paragraphs. It finds the best way to break lines. Finally, it puts everything on a page. Many people use a version of TeX called LaTeX. LaTeX adds more ways to make books and letters. It is very popular in schools and labs. TeX is free for anyone to use. This helps many people around the world use it.
TeX is a special computer program used for typesetting. Typesetting is the way text and images are arranged on a page. 
To make a page, TeX follows a specific set of steps. First, it reads the characters from an input file. It assigns a category code to every single character. Next, it looks for commands that start with a backslash. It swaps these commands for the actual text they represent. Then, it builds paragraphs by finding the best places to break lines.
Donald Knuth, a professor at Stanford University, created TeX.
TeX has changed many times since it first started. In 1982, a new version called TeX82 was released. This version included a real programming language. Later, in 1990, version 3.0 was released to help with foreign languages. This version allowed for more different characters. 
Most people do not use the basic TeX commands directly. Instead, they use larger sets of tools built on top of it. One very popular version is called LaTeX. 
TeX is a sophisticated digital typesetting system used to arrange text and mathematical symbols on a page. Typesetting is the process of preparing written material for printing. TeX is highly regarded for its ability to handle complex mathematical formulae with extreme precision.
The mechanism of TeX works through a precise four-stage process to transform code into a finished document. In the first stage, the program reads characters from an input file. It assigns a category code, or "catcode," to every character to understand its role. The second stage involves expanding control sequences. These are commands, often starting with a backslash, that the system replaces with specific text or instructions. In the third stage, TeX assembles these characters into paragraphs. It uses a specialized algorithm to find the best places to break lines for a balanced look. Finally, the fourth stage breaks the vertical list of lines into individual pages. TeX uses its exact knowledge of character sizes to calculate the most optimal arrangement of letters. It then produces a "DeVice Independent" (DVI) file, which can be sent to a printer or converted to a PDF.
Users rarely interact with the base TeX system directly. Instead, they use macro packages that provide more user-friendly commands. 
The history of TeX began with a sense of disappointment. In 1968, Donald Knuth published the first volume of his book, *The Art of Computer Programming*. At that time, the book used "hot metal typesetting," a method dating back to the 19th century. When the second edition was published in 1976, the technology had shifted to phototypesetting. Knuth found the new digital proofs to be inferior to the classic style he preferred.
TeX has undergone several major evolutions to improve its capabilities. In 1982, the TeX82 version was released. This version was rewritten from scratch and included a real, "Turing-complete" programming language. This change was the result of intense lobbying by computer scientist Guy Steele. Another major update occurred in 1990 with the release of version 3.0. This version expanded the system to support 8-bit inputs, allowing for 256 different characters. This change was necessary to accommodate the needs of foreign languages. 
One of the most unique aspects of TeX is its version numbering system. Since version 3, the numbers have followed the digits of the mathematical constant Pi. For example, the current version is 3.141592653. This system reflects the fact that the design is now considered "frozen." Knuth intends for the system to remain stable so that it produces the same results forever. He believes that consistency is more important than adding new features. He has even stated that the final change to the version number will only happen after his death. At that point, he joked that any remaining bugs would officially become features.
TeX's design is centered on the goal of high-quality typography. Knuth focused heavily on the spacing rules for mathematical formulas. To achieve this, he studied the spacing used in prestigious publications like *Acta Mathematica*. He wanted to ensure that every symbol was placed with mathematical perfection. This attention to detail is why TeX remains a dominant force in scientific publishing. It connects the art of traditional printing with the precision of modern computer science. By providing a free and stable system, TeX has allowed scientists worldwide to share their work with beautiful, consistent formatting.
🖼️ Images & Media (3)
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
What is Nepedia?
A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.