Log in Sign up
Back to Discover
💻

TeX

technology Maturity 11-13 war conflict
This article covers sensitive topics: war_conflict. Parents can manage visibility in Parental Controls.

A man made a way to print books.

LaTeX sample.png
LaTeX sample.png
It helps make math look good. It works on many computers. It makes books easy to read. It is a special tool for science. Do you like to read books?

40 words

A man named Donald Knuth made a tool for books.

LaTeX sample.png
LaTeX sample.png
He wanted to make books look very good. He did not like how some books looked. So, he wrote a new way to print them.
AMS Euler sample math.svg
AMS Euler sample math.svg
This tool is great for math. It helps make math symbols look clear. It works the same on all computers. This makes it a great tool for science.
Logo TUG.svg
Logo TUG.svg
People use it to write many things.

78 words

Donald Knuth created a tool called TeX.

Logo TUG.svg
Logo TUG.svg
He is a computer scientist at Stanford University. He made TeX because he wanted to make high-quality books. He was unhappy with how some books looked. He wanted a system that worked the same on all computers.
LaTeX sample.png
LaTeX sample.png

TeX is very good at math. It can handle complex math formulas with ease.

AMS Euler sample math.svg
AMS Euler sample math.svg
It uses special rules for spacing. This helps math symbols look clear and correct. Many people in science use TeX. This includes people who study physics or math.

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.

175 words

TeX is a special computer program used for typesetting. Typesetting is the way text and images are arranged on a page.

Logo TUG.svg
Logo TUG.svg
This program is very important for making books look professional. It is famous for handling complex math formulas beautifully. Many scientists and teachers use it every day. It is used in fields like physics, math, and even linguistics. Because it is free software, anyone can use it to make high-quality documents.
LaTeX sample.png
LaTeX sample.png

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.

AMS Euler sample math.svg
AMS Euler sample math.svg
Finally, it organizes the lines into pages. It knows the exact size of every symbol to make sure everything fits perfectly. This creates a file that can be sent to a printer.

Donald Knuth, a professor at Stanford University, created TeX.

Logo TUG.svg
Logo TUG.svg
He wanted to build it because he was unhappy with digital printing. In 1976, he published a new edition of his book, The Art of Computer Programming. The new version used a different printing method than the old one. Knuth found that the new printed pages did not look as good as the old ones. He decided to design his own system to fix this. He wrote a memo about his plan in May 1977. He released the first version, called TeX78, in 1978.

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.

LaTeX sample.png
LaTeX sample.png
TeX uses a very strange way to name its versions. The numbers look like the digits of Pi, which is 3.14159... The current version is 3.141592653. Knuth wants the system to stay stable and never change its main design. He believes it is better to have a system that always works the same way.

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.

LaTeX sample.png
LaTeX sample.png
It was made by Leslie Lamport to help people write books and letters more easily. Another version is called AMS-TeX, which is used by the American Mathematical Society. These tools make it much easier to use TeX for everyday tasks. You can think of TeX as the engine of a car. LaTeX and other packages are like the steering wheel and seats that make the car easy to drive.

468 words

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.

AMS Euler sample math.svg
AMS Euler sample math.svg
Because it produces professional, high-quality results, it is a standard tool in many academic fields. These include mathematics, computer science, physics, engineering, and linguistics. The term "TeX" refers to the original language and the entire system of extensions built around it. These extensions include TeX engines, macro sets, and various packages that add extra functionality.

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.

LaTeX sample.png
LaTeX sample.png
The most famous of these is LaTeX, developed by Leslie Lamport. LaTeX provides styles for books, letters, and slides, while also handling automatic numbering and references. Another significant system is AMS-TeX, created by the American Mathematical Society. This system offers many commands specifically designed for mathematical publishing. Many researchers use "AMS-LaTeX," which combines the features of LaTeX with specialized AMS packages. Other systems, such as ConTeXt, are also used for professional desktop publishing.

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.

Logo TUG.svg
Logo TUG.svg
On May 13, 1977, he wrote a memo outlining a plan for his own system. The first version, known as TeX78, was released in 1978. It was originally written in the SAIL programming language to run on a PDP-10 computer.

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.

LaTeX sample.png
LaTeX sample.png

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.

732 words
🖼️ Images & Media (3)
File:AMS Euler sample math.svg
AMS Euler sample math.svg
File:LaTeX sample.png
LaTeX sample.png
File:Logo TUG.svg
Logo TUG.svg
Up Next
💻
The Art of Computer Programming
Technology
More to explore

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.