TeX

TeX

infobox software
name = TeX

developer = Donald Knuth
latest_release_version = 3.1415926
latest_release_date = March 2008
operating_system = Cross-platform
genre = Typesetting
license = Permissive
website = http://www.tug.org/

TeX (pronEng|ˈtɛx, as in Greek, often IPA|/ˈtɛk/ in English; written with a lowercase 'e' in imitation of the logo) is a typesetting system designed and mostly written by Donald Knuth. [cite web
url=http://gcc.gnu.org/ml/java/1999-q2/msg00419.html
title=Per Bothner (assistant of Knuth) discusses authorship
quote=Knuth definitely wrote most of the code himself, at least for the Metafont re-write, for which I have personal knowledge. However, some of his students (such as Michael Plass and John Hob by) did work on the algorithms used in TeX and Metafont.
] Together with the METAFONT language for font description and the Computer Modern typefaces, it was designed with two main goals in mind: to allow anybody to produce high-quality books using a reasonable amount of effort, and to provide a system that would give the exact same results on all computers, now and in the future. Within the typesetting system, its name is formatted as TeX.

TeX is considered by many to be the best way to typeset complex mathematical formulae. [ cite web | first = Claudio | last = Beccari | url = http://www.tug.org/TUGboat/Articles/tb18-1/tb54becc.pdf | title = Typesetting mathematics for science and technology according to ISO31XI | work = TUGboat | volume = vol. 18 (1) | year = 1997 ] TeX is popular in academia, especially in the mathematics and physics communities. It has largely displaced Unix troff, the other favored formatter, in many Unix installations, which use both for different purposes. It is now also being used for many other typesetting tasks, especially in the form of LaTeX and other template packages.

The widely-used MIME Type for TeX is application/x-tex. TeX is free software.

History

When the first volume of Knuth's "The Art of Computer Programming" was published in 1969, it was typeset using hot metal type set by a Monotype Corporation typecaster a hot metal typesetting machine from the 19th century which produced a "good classic style" appreciated by Knuth. When the second edition of the second volume was published, in 1976, the whole book had to be typeset again because the Monotype technology had been largely replaced by photographic techniques, and the original fonts were no longer available. [Donald E. Knuth. "Digital Typography". Commemorative lecture for the Kyoto Prize, Kyoto, 1996. Reprinted as chapter 1 of the book "Digital Typography".] However, when Knuth received the galley proofs of the new book on 30 March 1977, he found them awful. ["Digital Typography", p. 5. “"I had spent 15 years writing those books, but if they were going to look awful I didn't want to write any more."”] Around that time, Knuth saw for the first time the output of a high-quality digital typesetting system, and became interested in digital typography. The disappointing galley proofs gave him the final motivation to solve the problem at hand once and for all by designing his own typesetting system. On May 13, 1977, he wrote a memo to himself describing the basic features of TeX. [Donald E. Knuth. "TEXDR.AFT", chapter 24 of the book "Digital Typography".]

He planned to finish it on his sabbatical in 1978, but as it happened the language was frozen only in 1989, more than ten years later. Guy Steele happened to be at Stanford during the summer of 1978, when Knuth was developing his first version of TeX. When Steele returned to MIT that fall, he rewrote TeX's I/O to run under the ITS operating system. The first version of TeX was written in the SAIL programming language to run on a PDP-10 under Stanford's WAITS operating system. For later versions of TeX, Knuth invented the concept of literate programming, a way of producing compilable source code and high quality cross-linked documentation (typeset in TeX, of course) from the same original file. The language used is called WEB and produces programs in DEC PDP-10 Pascal.

A new version of TeX, rewritten from scratch and called TeX82, was published in 1982. Among other changes, the original hyphenation algorithm was replaced by a new algorithm written by Frank Liang. TeX82 also uses fixed-point arithmetic instead of floating-point, to ensure reproducibility of the results across different computer hardware, [Knuth and Plass, p. 144] and includes a real, Turing-complete programming language, following intense lobbying by Guy Steele. [Donald E. Knuth, " [http://maps.aanhet.net/maps/pdf/16_15.pdf Knuth meets NTG members] ", NTG: MAPS. 16 (1996), 38–49. Reprinted as "Questions and Answers, III", chapter 33 of "Digital Typography", p. 648.]

In 1989, Donald Knuth released new versions of TeX and METAFONT. [Donald E. Knuth. [http://www.tug.org/TUGboat/Articles/tb10-3/tb25knut.pdf "The New Versions of TeX and METAFONT"] , TUGboat 10 (1989), 325–328; 11 (1990), 12. Reprinted as chapter 29 of "Digital Typography".] Despite his desire to keep the program stable, Knuth realised that 128 different characters for the text input were not enough to accommodate foreign languages; the main change in version 3.0 of TeX is thus the ability to work with 8-bits inputs, allowing 256 different characters in the text input.

Since version 3, TeX has used an idiosyncratic version numbering system, where updates have been indicated by adding an extra digit at the end of the decimal, so that the version number asymptotically approaches π. This is a reflection of the fact that TeX is now very stable, and only minor updates are anticipated. The current version of TeX is 3.1415926; it was last updated in March 2008. The design was frozen after version 3.0, and no new feature or fundamental change will be added, so all newer versions will contain only bug fixes. Even though Donald Knuth himself has suggested a few areas in which TeX could have been improved, he indicated that he firmly believes that having an unchanged system that will produce the same output now and in the future is more important than introducing new features. For this reason, he has stated that the "absolutely final change (to be made after my death)" will be to change the version number to π, at which point all remaining bugs will become features. [Donald E. Knuth. [http://www.ntg.nl/maps/05/34.pdf "The future of TeX and METAFONT"] , NTG journal MAPS (1990), 489. Reprinted as chapter 30 of "Digital Typography", p. 571.] Likewise, versions of METAFONT after 2.0 asymptotically approach e, and a similar change will be applied after Knuth's death.

However, since the source code of TeX is essentially in the public domain (see below), other programmers are allowed (and explicitly encouraged) to improve the system, but are required to use another name to distribute the modified TeX, meaning that the source code can still evolve. For example, the Omega project was developed after 1991, primarily to enhance TeX's multilingual typesetting abilities. Donald Knuth himself created “unofficial” modified versions, such as TeX-XeT, which allows a user to mix texts written in left-to-right and right-to-left writing systems in the same document.Donald E. Knuth and Pierre MacKay. [http://www.tug.org/TUGboat/Articles/tb08-1/tb17knutmix.pdf "Mixing Right-to-Left Texts with Left-to-Right Texts"] , TUGboat 8 (1987), 14–25. Reprinted as chapter 4 of "Digital Typography".]

The typesetting system

TeX commands commonly start with a backslash and are grouped with curly braces. However, almost all of TeX's syntactic properties can be changed on the fly which makes TeX input hard to parse by anything but TeX itself. TeX is a macro- and token-based language: many commands, including most user-defined ones, are expanded on the fly until only unexpandable tokens remain which get executed. Expansion itself is practically side-effect free. Tail recursion of macros takes no memory, and if-then-else constructs are available. This makes TeX a Turing-complete language even at expansion level.

The system can be divided into four levels: in the first, characters are read from the input file and assigned a category code (sometimes called “catcode”, for short). Combinations of a backslash (really: any character of category zero) followed by letters (characters of category 11) or a single other character are replaced by a control sequence token. In this sense this stage is like lexical analysis, although it does not form numbers from digits. In the next stage, expandable control sequences (such as conditionals or defined macros) are replaced by their replacement text. The input for the third stage is then a stream of characters (including ones with special meaning) and unexpandable control sequences (typically assignments and visual commands). Here characters get assembled into a paragraph. TeX's paragraph breaking algorithm works by optimizing breakpoints over the whole paragraph. The fourth stage breaks the vertical list of lines and other material into pages.

The TeX system has precise knowledge of the sizes of all characters and symbols, and using this information, it computes the optimal arrangement of letters per line and lines per page. It then produces a DVI file (“DeVice Independent”) containing the final locations of all characters. This dvi file can be printed directly given an appropriate printer driver, or it can be converted to other formats. Nowadays, PDFTeX is often used which bypasses DVI generation altogether.

The base TeX system understands about 300 commands, called "primitives". ["The TeXbook", p. 9.] However, these low-level commands are rarely used directly by users, and most functionality is provided by format files (predumped memory images of TeX after large macro collections have been loaded). Knuth's original default format, which adds about 600 commands, is Plain TeX ( [ftp://tug.ctan.org/pub/tex-archive/systems/knuth/dist/lib/plain.tex available from CTAN] ). The most widely used format is LaTeX, originally developed by Leslie Lamport, which incorporates document styles for books, letters, slides, etc, and adds support for referencing and automatic numbering of sections and equations. Another widely used format, AMS-TeX, is produced by the American Mathematical Society, and provides many more user-friendly commands, which can be altered by journals to fit with their house style. Most of the features of AMS-TeX can be used in LaTeX by using the AMS “packages”. This is then referred to as AMS-LaTeX. Other formats include ConTeXt, used primarily for desktop publishing and written mostly by Hans Hagen at Pragma.

How TeX is run

A sample Hello world program in plain TeX is: Hello, World end % marks the end of the file; not shown in the final outputThis might be in a file "myfile.tex", as ".tex" is a common file extension for plain TeX files.

By default, everything that follows a percent sign on a line is a comment, ignored by TeX. Running TeX on this file (for example, by typing tex myfile.tex in a command line interpreter, or by calling it from a graphical user interface) will create an output file called "myfile.dvi", representing the content of the page in a device independent format (DVI). The results can either be printed directly from a DVI viewer or converted to a more common format such as PostScript using the dvips program. This was because TeX natively uses bitmap fonts, which are only designed to display well at one particular size, whereas PostScript typically uses scalable Type 1 fonts. It is now possible to make dvips output scalable fonts with a bit of tweaking (newer versions of Ghostscript support it). TeX variants such as PDFTeX produce PDF files directly.

Mathematical example

TeX provides a text syntax for mathematical formulae. For example, the well-known quadratic formula would appear as: The quadratic formula is $-b pm sqrt{b^2 - 4ac} over 2a$ end

and the output would resemble::The quadratic formula is extstyle{-b pm sqrt{b^2 - 4ac} over 2a}

The formula is printed in a way a person would write by hand, or typeset the equation. In a document, entering "mathematics mode" is done by starting with a $, then entering a formula in TeX semantics and closing again with another $. Knuth explained in a jest that he chose the dollar sign to indicate the beginning and end of mathematical mode in plain TeX because typesetting mathematics was traditionally supposed to be expensive. [Donald E. Knuth, "The TeXbook", Ch. 16: Typing Math Formulas, p. 127.] "Display mathematics" (mathematics presented centered on a new line) is similar but uses $$ instead of $. For example, the above with the quadratic formula in display math:

The quadratic formula is $$-b pm sqrt{b^2 - 4ac} over 2a$$ end

renders as:The quadratic formula is
-b pm sqrt{b^2 - 4ac} over 2a

Novel aspects

The TeX software incorporates several aspects that were not available, or were of lower quality, in other typesetting programs at the time when TeX was released. Some of the innovations are based on interesting algorithms, and have led to a number of theses for Knuth's students. While some of these discoveries have now been incorporated into other typesetting programs, others, such as the rules for mathematical spacing, are still unique.

Mathematical spacing

Since the primary goal of TeX was the high-quality typesetting of his book "The Art of Computer Programming", Knuth gave a lot of attention to the choice of proper spacing rules for mathematical formulae. He took three bodies of work that he considered as standards of excellence for mathematical typography: the books typeset by Addison-Wesley, the publisher of "The Art of Computer Programming", in particular the work done by Hans Wolf; editions of the mathematical journal "Acta Mathematica" dating from around 1910; and a copy of "Indagationes Mathematicae", a Dutch mathematics journal. Knuth looked closely at these examples to derive a set of spacing rules for TeX. [Donald E. Knuth. "Questions and Answers II", TUGboat 17 (1996), 355–367. Reprinted as chapter 32 of "Digital Typography", p. 620.] While TeX provides some basic rules and the tools needed to specify proper spacing, the exact parameters depend on the font used to typeset the formula. For example, the spacing for Knuth's Computer Modern fonts has been precisely fine-tuned over the years and is now frozen, but when other fonts, such as AMS Euler, were used by Knuth for the first time, new spacing parameters had to be defined. [Donald E. Knuth. [http://www.tug.org/TUGboat/Articles/tb10-1/tb23knut.pdf "Typesetting Concrete Mathematics"] , TUGboat 10 (1989), 31–36, 342. Reprinted as chapter 18 of "Digital Typography".]

Hyphenation and justification

In comparison with manual typesetting, the problem of justification is easy to solve with a digital system such as TeX, which, provided that good points for line breaking have been defined, can automatically spread the spaces between words to fill in the line. The problem is thus to find the set of breakpoints that will give the most pleasing result. Many line breaking algorithms use a "first-fit" approach, where the breakpoints for each line are determined one after the other, and no breakpoint is changed after it has been chosen. [Michael P. Barnett. "Computer Typesetting: Experiments and Prospects". Cambridge, Massachusetts: MIT Press, 1965.] Such a system is not able to define a breakpoint depending on the effect that it will have on the following lines. In comparison, the "total-fit" line breaking algorithm used by TeX and developed by Donald Knuth and Michael Plass considers "all" the possible breakpoints in a paragraph, and finds the combination of line breaks that will produce the most globally pleasing arrangement.

Formally, the algorithm defines a value called "badness" associated with each possible line break; the badness is increased if the spaces on the line must stretch or shrink too much to make the line the correct width. Penalties are added if a breakpoint is particularly undesirable: for example, if a word must be hyphenated, if two lines in a row are hyphenated, or if a very loose line is immediately followed by a very tight line. The algorithm will then find the breakpoints that will minimize the sum of squares of the badness (including penalties) of the resulting lines. If the paragraph contains n possible breakpoints, the number of situations that must be evaluated naively is 2^n. However, by using the method of dynamic programming, the complexity of the algorithm can be brought down to O(n^2) (see Big O notation). Further simplifications (for example, not testing extremely unlikely breakpoints such as a hyphenation in the first word of a paragraph) lead to an efficient algorithm whose running time is almost always of order n. However, in general, a thesis by Michael Plass shows how the page breaking problem can be NP-complete because of the added complication of placing figures. [Knuth and Plass] A similar algorithm is used to determine the best way to break paragraphs across two pages, in order to avoid widows or orphans (lines that appear alone on a page while the rest of the paragraph is on the following or preceding page).

TeX's line breaking algorithm has been adopted by several other programs, such as Adobe InDesign a desktop publishing application [Advogato. [http://www.advogato.org/article/28.html Interview of Donald E. Knuth] (PDF file, also available in HTML at [http://www.advogato.org/article/28.html] ), TUGboat 21 (2000), 103–110.] , and the GNU fmt Unix command line utility. [GNU Project, " [http://www.gnu.org/software/textutils/manual/textutils/html_node/textutils_9.html#SEC9 GNU text utilities manual, 4.1 fmt: Reformat paragraph text] ". 2000.]

If no suitable line break can be found for a line, the system will try to hyphenate a word. The original version of TeX used a hyphenation algorithm based on a set of rules for the removal of prefixes and suffixes of words, and for deciding if it should insert a break between the two consonants in a pattern of the form vowel–consonant–consonant–vowel (which is possible most of the time). [Liang, p. 3] TeX82 uses a new hyphenation algorithm, designed by Frank Liang in 1983, to assign priorities to breakpoints in letter groups. A list of hyphenation patterns is first generated automatically from a corpus of hyphenated words (a list of 50,000 words). If TeX must find the acceptable hyphenation positions in the word "encyclopedia", for example, it will consider all the subwords of the extended word ".encyclopedia.", where "." is a special marker to indicate the beginning or end of the word. The list of subwords include all the subwords of length 1 (".", "e", "n", "c", "y", etc), of length 2 (".e", "en", "nc", etc), etc, up to the subword of length 14, which is the word itself, including the markers. TeX will then look into its list of hyphenation patterns, and find subwords for which it has calculated the desirability of hyphenation at each position. In the case of our word, 11 such patterns can be matched, namely 1c4l4, 1cy, 1d4i3a, 4edi, e3dia, 2i1a, ope5d, 2p2ed, 3pedi, pedia4, y1c. For each position in the word, TeX will calculate the "maximum value" obtained among all matching pattern, yielding en1cy1c4l4o3p4e5d4i3a4. Finally, the acceptable positions are those indicated by an odd number, yielding the acceptable hyphenations "en-cy-clo-pe-di-a". This system based on subwords allows the definition of very general patterns (such as 2i1a), with low indicative numbers (either odd or even), which can then be superseded by more specific patterns (such as 1d4i3a) if necessary. These patterns find about 90% of the hyphens in the original dictionary; more importantly, they do not insert any spurious hyphen. In addition, a list of exceptions (words for which the patterns do not predict the correct hyphenation) are included with the Plain TeX format; additional ones can be specified by the user. [Liang, PhD thesis] ["The TeXbook", Appendix H: Hyphenation, pp. 449–455.]

METAFONT

METAFONT, not strictly part of TeX, is a font description system which allows the designer to describe characters algorithmically. It uses Bezier curves in a fairly standard way to generate the actual characters to be displayed, but Knuth devotes lots of attention to the rasterizing problem on bitmapped displays. Another thesis, by John Hobby, further explores this problem of digitizing “brush trajectories”. This term derives from the fact that METAFONT describes characters as having been drawn by abstract brushes (and erasers).

It is possible to use TeX and LaTeX without METAFONT. Adobe PostScript (“Type 1”) fonts may be used instead. (La)TeX expects fonts to be supplied as bitmaps at specific point sizes, while PostScript is a vector (outline) description scalable over a wide range, so this does introduce some minor complications. Nonetheless, with the help of some prewritten packages, (La)TeX can be made to use PostScript fonts. Further note that “Type 1” or “T1” can refer in documentation to two very different things: the TeX T1 character encoding scheme to map byte values to glyphs, and Adobe PostScript fonts.

Macro language

TeX provides an unusual macro language; the definition of a macro not only includes a list of commands but also the syntax of the call. Macros are completely integrated with a full-scale interpreted compile-time language that also guides processing.

TeX's macro level of operation is lexical, but it is a built-in facility of TeX, that makes use of syntax interpretation. Comparing with most widely used lexical preprocessors like M4, it differs slightly, as the body of a macro gets tokenized at definition time, that is, it is not completely raw text. Except for a few very special cases, this gives the same behaviour.

The TeX macro language has been successfully used to extend TeX to, for instance, LaTeX and ConTeXt.

Development

The original source code for the current TeX software is written in WEB, a mixture of documentation written in TeX and a Pascal subset in order to ensure portability. For example, TeX does all of its dynamic allocation itself from fixed-size arrays and uses only fixed-point arithmetic for its internal calculations. As a result, TeX has been ported to almost all operating systems, usually by using the web2c program to convert the source code into C instead of directly compiling the Pascal code.

Knuth has kept a very detailed log of all the bugs he has corrected and changes he has made in the program since 1982; as of 2005, the list contains 419 entries, not including the version modification that should be done after his death as the final change in TeX. [Donald E. Knuth, [ftp://tug.ctan.org/pub/tex-archive/systems/knuth/dist/errata/tex82.bug List of updates to the TeX82 listing published in September 1982] , available on CTAN.] [Donald E. Knuth, [ftp://tug.ctan.org/pub/tex-archive/systems/knuth/dist/errata/errorlog.tex Appendix to the "Errors of TeX" paper] , available on CTAN, last modified in January 2003.] Donald Knuth offers monetary awards to people who find and report a bug in TeX. The award per bug started at $2.56 (one "hexadecimal dollar" [ [http://sunburn.stanford.edu/~knuth/faq.html Frequently Asked Questions] on [http://sunburn.stanford.edu/~knuth/ Don Knuth's webpage] ] ) and doubled every year until it was frozen at its current value of $327.68. This has not made Knuth poor, however, as there have been very few bugs claimed. In addition, people have been known to frame a check proving they found a bug in TeX instead of cashing it.Kara Platoni, [http://www.stanfordalumni.org/news/magazine/2006/mayjun/features/knuth.html Love at First Byte] . Stanford Magazine, May-June 2006] [The [http://www.tug.org/whatis.html History of TeX] ]

Packages

TeX is usually provided in the form of an easy-to-install bundle of TeX itself along with METAFONT and all the necessary fonts, documents formats, and utilities needed to use the typesetting system. On UNIX-compatible systems, including Linux and Mac OS X, TeX is distributed in the form of the teTeX distribution and more recently the TeX Live distribution. On Microsoft Windows, there is the MiKTeX distribution (enhanced by [http://www.tug.org/protext ProTeX] ) and the [https://xemtex.groups.foundry.supelec.fr/xemtex-web-gb-2-5.html fpTeX] distribution.

Several document processing systems are based on TeX, notably jadeTeX, which uses TeX as a backend for printing from James Clark's DSSSL Engine, the Arbortext publishing system, and Texinfo, the GNU documentation processing system. TeX has been the official typesetting package for the GNU operating system since 1984.

XeTeX is a new TeX engine that supports Unicode. Originally making use of advanced Mac OS X-specific font technologies, it now supports OpenType and is available on Linux and Microsoft Windows.

Numerous extensions and companion programs for TeX exist, among them BibTeX for bibliographies (distributed with LaTeX), pdfTeX, which bypasses dvi and produces output in Adobe Systems' Portable Document Format, and Omega, which allows TeX to use the Unicode character set. Most TeX extensions are available for free from CTAN, the Comprehensive TeX Archive Network.

Editors

The TeXmacs text editor is a WYSIWYG scientific text editor that is intended to be compatible with TeX and Emacs. It uses Knuth's fonts, and can generate TeX output.

LyX is a “What You See is What You Mean” document processor which runs on a variety of platforms including Linux, Windows (newer versions require Windows 2000 or later) or Mac OS X (using a non-native Qt front-end).

TeXShop for Mac OS X, and WinShell for Windows are similar tools and provide integrated development environment (IDE) for working with LaTeX or TeX. For KDE, Kile provides such an IDE.

GNU Emacs has various built-in and third party packages with support for TeX, the major one being AUCTeX. For Vim there is the [http://vim-latex.sourceforge.net/ Vim-LaTeX Suite] .

License

Donald Knuth has indicated several times ["The future of TeX and METAFONT", p. 572 of the book "Digital Typography".] [Donald E. Knuth. "Computers and Typesettings" (available online split into 2 files: [http://www.tug.org/TUGboat/Articles/tb07-2/tb15gordon.pdf] [http://www.tug.org/TUGboat/Articles/tb07-2/tb15knut.pdf] ), TUGboat 7 (1986), 95–98. Reprinted as chapter 28 of "Digital Typography", p. 560.] that the source code of TeX has been placed into the "public domain," and he strongly encourages modifications or experimentations with this source code. However, since the code is still copyrighted, it is technically free/open-source software but is not in the public domain in the legal sense. In particular, since Knuth highly values the reproducibility of the output of all versions of TeX, any changed version must not be called TEX, TeX, or anything confusingly similar. To enforce this rule, any implementation of the system must pass a test suite called the TRIP test ( [ftp://tug.ctan.org/pub/tex-archive/systems/knuth/dist/tex/trip.tex available on CTAN] ) before being allowed to be called TeX. The question of license is somewhat confused by the statements included at the beginning of the TeX source code [Donald E. Knuth, "TeX: The Program".] , which indicate that “"all rights are reserved. Copying of this file is authorized only if (...) you make absolutely no changes to your copy"”. However, this restriction should be interpreted as a prohibition to change the source code "as long as the file is called tex.web". This interpretation is confirmed later in the source code when the TRIP test is mentioned (“"If this program is changed, the resulting system should not be called ‘TeX’"”).

The American Mathematical Society has also claimed a trademark for TeX, which was rejected, because at the time this was tried (early 1980s), “TEX” (all caps) was registered by Honeywell for the “Text EXecutive” text processing system. ["The TeXbook", p. 1.]

Use of TeX

In several technical fields, in particular computer science, mathematics and physics, TeX has become a de facto standard. Many thousands of books have been published using TeX, including books published by Addison-Wesley, Cambridge University Press, Elsevier, Oxford University Press and Springer. Numerous journals in these fields are produced using TeX or LaTeX, allowing authors to submit their raw manuscript written in TeX. [Beebe, p.10]

While many publications in other fields, including dictionaries and legal publications, have been produced using TeX, it has not been as successful as in more technical fields, in particular because TeX was primarily designed for mathematics. When he designed TeX, Donald Knuth did not believe that a single typesetting system would fit everyone's needs; instead, he designed many hooks inside the program so that it would be possible to write extensions, and released the source code, hoping that publishers would design versions tailored to their needs. While such extensions have been created (including some by Knuth himselfDonald E. Knuth and Pierre MacKay. [http://www.tug.org/TUGboat/Articles/tb08-1/tb17knutmix.pdf "Mixing Right-to-Left Texts with Left-to-Right Texts"] , TUGboat 8 (1987), 14–25. Reprinted as chapter 4 of "Digital Typography".] ), most people have extended TeX only using macros and it has remained a system associated with technical typesetting. [Donald E. Knuth. "Questions and Answers I", TUGboat 17 (1996), 7–22. Reprinted as chapter 31 of "Digital Typography", p. 598.] [Donald E. Knuth. "Questions and Answers II", TUGboat 17 (1996), 355–367. Reprinted as chapter 32 of "Digital Typography", p. 616–617.]

Pronouncing and writing "TeX"

The name TeX is intended to be pronEng|ˈtɛx. The X is meant to represent the Greek letter "χ" (chi). TeX is the abbreviation of "τέχνη" (ΤΕΧΝΗ – technē), Greek for both "art" and "craft", which is also the root word of "technical". English speakers often pronounce it IPA|/ˈtɛk/, like the first syllable of "technical".

The name is properly typeset with the "E" below the baseline and reduced spacing between the letters. This is done, as Donald Knuth mentions in his TeXBook, to distinguish ΤeΧ from other system names such as TEX, the Text EXecutive processor (developed by Honeywell Information Systems). [Donald E. Knuth. [http://www.tug.org/TUGboat/Articles/tb07-2/tb15knutlogo.pdf "The TeX Logo in Various Fonts"] , TUGboat 7 (1986), 101. Reprinted as chapter 6 of "Digital Typography".] Fans like to proliferate names from the word “TeX” — such as "TeXnician" (user of TeX software), "TeXpert", "TeXhacker" (TeX programmer), "TeXmaster" (competent TeX programmer), "TeXhax", and "TeXnique".

Community

Notable entities in the TeX community include the TeX Users Group, which publishes TUGboat and The PracTeX Journal, and Deutschsprachige Anwendervereinigung TeX, a large user group in Germany.

See also

* List of document markup languages
* Comparison of document markup languages
* MathML
* Formula editor
* Texvc
* PSTricks

References

*
* Donald E. Knuth. "The TeXbook" (Computers and Typesetting, Volume A). Reading, Massachusetts: Addison-Wesley, 1984. ISBN 0-201-13448-9. The [http://www.ctan.org/tex-archive/systems/knuth/dist/tex/texbook.tex source code of the book in TeX] (and a needed set of macros [ftp://tug.ctan.org/pub/tex-archive/systems/knuth/dist/lib/manmac.tex] ) is available online on CTAN. It is provided only as an example and its use to prepare a book like The TeXbook is not allowed.
* Donald E. Knuth. "TeX: The Program" (Computers and Typesetting, Volume B). Reading, Massachusetts: Addison-Wesley, 1986. ISBN 0-201-13437-3. The full source code of TeX; also available on CTAN at [ftp://tug.ctan.org/pub/tex-archive/systems/knuth/dist/tex/tex.web] . Being written using literate programming, it contains plenty of human-readable documentation.
* Donald E. Knuth. "Digital Typography" (CSLI lecture notes, no 78). Center for the Study of Language and Information, 1999. ISBN 1-57586-010-4.
* Donald E. Knuth and Michael F. Plass. "Breaking Paragraphs Into Lines", Software — Practice and Experience 11 (1981), 1119–1184. Reprinted as chapter 3 of "Digital Typography", p. 67–155.
* Leslie Lamport. "LaTeX: A Document Preparation System". Addison-Wesley, Reading, Massachusetts: Addison-Wesley, 2nd. ed., 1994. ISBN 0-201-52983-1.
* Franklin Mark Liang. " [http://www.tug.org/docs/liang/ Word Hy-phen-a-tion by Com-put-er] ", PhD thesis, Department of Computer Science, Stanford University, August 1983.
* M.D. Spivak. "The Joy of TeX" (2nd edition). American Mathematical Society, 1990. ISBN 0-8218-2997-1. "Reference on AMS-TeX".
* Nelson H.F. Beebe. " [http://www.tug.org/TUGboat/Articles/tb25-1/beebe-2003keynote.pdf 25 Years of TeX and METAFONT: Looking Back and Looking Forward] ", TUGboat 25 (2004), 7–30.
* Michael Vulis, "Modern TeX and Its Applications", CRC Press, 1992. ISBN 0-8493-4431-X

Notes

External links

* [http://refcards.com/docs/silvermanj/tex/tex-refcard-letter.pdf Plain TeX Quick Reference (PDF)]
* [http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes UK TeX Users' Group FAQ]
* Simon Eveson. [http://www-users.york.ac.uk/~spe1/texnotes07.pdf "An Introduction to Mathematical Document Production Using AmSLaTeX"] .
* [http://www.tug.org/texshowcase/ The TeX showcase] gallery of typesetting examples
*Eijkhout, Victor. [http://www.eijkhout.net/tbt/ "TeX by Topic"]
* [ftp://ftp.gwdg.de/pub/dante/info/impatient/book.pdf "TeX for the Impatient (PDF)"]
*Walsh, Norman. [http://makingtexwork.sourceforge.net/mtw/ "Making TeX Work"]
*Plain TeX supported by MathMagic equation editor


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • tex — tex …   Dictionnaire des rimes

  • TeX — (TeX) Entwickler Donald E. Knuth Aktuelle Version 3.1415926 (März 2008) Betriebssystem …   Deutsch Wikipedia

  • TEX — Pour les articles homonymes, voir Tex (homonymie). TeX …   Wikipédia en Français

  • Tex — may refer to: *Tex (unit), a unit of measure for the linear mass density of fibers *TeX, pronounced tech , a typesetting system created by Donald Knuth *Text Executive Programming Language * Tau Epsilon Chi high school sororityPeopleTex is ofen… …   Wikipedia

  • Tex — (homonymie) Cette page d’homonymie répertorie les différents sujets et articles partageant un même nom. TeX est un système logiciel de composition de documents. Le tex est une unité de masse linéique correspondant à 1 gramme par kilomètre,… …   Wikipédia en Français

  • TEX — ist: eine Maßeinheit für die Garnfeinheit ein von Donald E. Knuth entwickeltes Textsatzsystem, siehe TeX Kurzform von The Exceptions einer Gruppe aus der 16 Bit Demoszene der Name eines Spielfilms von Tim Hunter aus dem Jahr 1982, siehe Tex… …   Deutsch Wikipedia

  • Tex — ist: eine Maßeinheit für die Garnfeinheit, siehe Titer (Textil)#Gewichtsnummerierungen ein von Donald E. Knuth entwickeltes Textsatzsystem, siehe TeX Kurzform von The Exceptions, einer Gruppe aus der 16 Bit Demoszene der Name eines Spielfilms von …   Deutsch Wikipedia

  • tex — TEX, texuri, s.n. Sistem de măsurare a fineţii firelor textile. – Din fr. tex. Trimis de ana zecheru, 13.09.2007. Sursa: DEX 98  tex s. n., pl. téxuri Trimis de siveco, 10.08.2004. Sursa: Dicţionar ortografic  TEX1 texuri n. Cui mic folosit la… …   Dicționar Român

  • tex — [ tɛks ] n. m. • 1956; abrév. de textile ♦ Techn. Unité de finesse d une fibre textile, correspondant à un gramme au kilomètre de fil (⇒ décitex). Adj. Système tex. ● tex nom masculin (de textile) Unité de masse linéique employée dans le commerce …   Encyclopédie Universelle

  • Tex — (officielt skrevet TEX, og udtalt tekh ) er et kraftigt layout system skrevet af Donald Knuth, populært i akademiske kredse, specielt indenfor matematik, fysik og datalogi. TeX anses generelt for at være den bedste måde at opsætte komplekse… …   Danske encyklopædi

  • tex — |cs| s. m. [Física, Metrologia] Unidade de medida de massa (símbolo: tex) equivalente a 10 6 quilograma por metro, ou seja 1 grama por quilômetro; o tex emprega se no comércio de fibras têxteis e de fios …   Dicionário da Língua Portuguesa

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”