Previous Next Contents

2. 2. What is TeX? What is LaTeX? What is teTeX? What is thedifference?

TeTeX is Thomas Esser's implementation of TeX for Linux systems. This means the executable programs themselves run under Linux and the fonts are provided in form which is usable by the Linux/teTeX system. The rest of the code, TeX and LaTeX itself, is portable across various machines.

In addition to the executable programs, the distribution includes all of the TeX, LaTeX, and metafont sources, BibTeX, MakeIndex, and ALL of the documentation... about 3 megabytes' worth. In short, teTeX is a reasonably complete implementation of TeX 3.1419 and LaTeX 2e, and the documentation covers everything you will forseeably know to get started. So, you should install all of the documents. Not only will you eventually read them, they also provide useful examples of "live" TeX and LaTeX code.

In comparison with other implementations of TeX, the installation of teTeX is almost trivial even without the Slackware configuration utilities, if you don't count the effort necessary to insert and remove the nine diskettes of the Slackware distribution. If you installed and have used Slackware-distributed teTeX, you can pretty much skip the rest of this section, and the next. But for the rest of you...

TeX is a typesetting system developed by Professor Donald Knuth of Stanford University. It is a lower-level typesetting language that powers all of the higher-level packages, like LaTeX. Essentially, LaTeX is a set of TeX macros which provide convenient, predefined document formats for end users. If you like the formats provided by LaTeX, you may never need to learn bare-bones TeX programming. The difference between the two languages is like the difference between assembly language and C. You can have the speed and flexibility of TeX, or the convenience of LaTeX. Which brings us to the next answer,

ANSWER NO. 2: YOU HAVE IT BACKWARDS!!! I WANT TO KNOW WHAT EXACTLY I NEED TO GET BEFORE I CAN HAVE TeX ON MY SYSTEM!

It's important to remember that TeX only handles the typesetting part of the document preparation. Generating output with TeX is like compiling source code into object code which still needs to be linked. You prepare an input file with a text editor -- what most people think of as "word processing" -- and typeset the input file document with TeX to produce a device-independent output file, called a DVI file.

You also need output output drivers for your printer and video display. These output drivers use TeX's DVI output to display your typeset document on the screen or on paper. This software is collectively known as "dviware." For example, TeX itself only makes requests for fonts. It is up to the DVI driver to provide the actual font to the display device if necessary, regardless whether it is the screen or a printer. This extra step may seem overly complicated, but the abstraction allows documents to display the same on different devices with no change to the original document.

In fact, much of TeX, and therefore LaTeX's complexity, arises from its implementation of various font systems, and the way these fonts are specified. A major improvement of LaTeX 2e over its predecessor was the way users specify fonts, the former New Font Selection Scheme. (See Section 6.)

TeTeX comes distributed with about a dozen standard fonts preloaded, which is enough to get you started. Also provided are the font metrics descriptions, in .tfm (TeX font metric) files. To generate the other fonts you will need, it is simply a matter of installing the metafont sources. Tetex's DVI utilities will invoke metafont automatically and generate the Computer Modern fonts you need, on-the-fly.

Section 6 discusses how to get teTeX to use Postscript fonts on your system. Sometime in the future I'd like to add a section that describes how to unify all of the various font schemes on your machine. Not only will this provide you with a more consistent look on-screen and in print, it can save you wads of disk space, too.

By the way, the letters of the word "TeX" are Greek, tau-epsilon-chi. This is not a fraternity. Instead, it is the root of the Greek word "techne," which means art and/or science. "TeX" is not pronounced like the first syllable in "Texas." The chi has no English equivalent, but TeX is generally pronounced so that it rhymes with "yecch." When writing, "TeX," on character devices, always use the standard capitalization, or the \TeX{} macro in typesetting. This is how TeX is distinguished from other text systems.

Speaking of typing, any of the editors which come with Linux -- jed, joe, jove, vi, vim, stevie, emacs, microemacs -- will work to prepare a TeX input file, as long as the editor reads and writes plain-vanilla ASCII text. My preference is GNU emacs. There are several reasons for this:

1. Emacs's TeX and LaTeX modes obviate the need for a stand-alone TeX shell. 2. Emacs can automatically insert TeX-style, ``curly quotes,'' as you type, rather than the "ASCII-vanilla" kind. 3. Emacs has integrated support for texinfo and makeinfo, a hypertext documentation system. 4. Emacs is widely supported. Version 19.34, for example, is included in Slackware 96. 5. Emacs does everything except butter the toast in the morning. 5. Emacs is free.

There's a lot of software to assemble. In the meantime, you can start in "learning" TeX and LaTeX. Remember that teTeX and the font packages have been designed as two separate entities: teTeX is specific to Linux, but the CM, DC, American Mathematical Society, or other font distributions have been designed for many different platforms. While you are working on assembling the files, you can take a few breaks to locate some of the documentation you will need.

There are user manuals available both commercially and via the Internet. Judging by the number of mentions they receive in the comp.text.tex newsgroup, the most useful -- and definitive -- commercially available texts for beginners are:

"LaTeX: A Document Preparation System," by Leslie Lamport, 272 pp. If you're using LaTeX instead of plain TeX (highly recommended), this is the definitive reference.

If you must use plain TeX, "The TeXBook," by Donald Knuth, 483 pp., is the definitive reference. It is also necessary if you plan to do any serious class, package, or macro writing for LaTeX.

Also, "The LaTeX Companion," by Michel Goosens, Frank Mittelbach, and Alexander Samarin, 530 pp., is more advanced than the Lamport, above. If you are approaching TeX or LaTeX for the first time, you'll likely feel lost reading this. (I was.) However, when you need to add extension packages, like PSNFSS (See Section 6.) or BibTeX, a bibliography indexing program, this book is one of the most highly regarded on the market. There's also supposed to be an edition devoted entirely to TeX/LaTeX graphics soon.

At your nearest CTAN site you can retrieve these documents for free:

"The Not So Short Introduction to LaTeX2e," by Tobias Oetiker, Hubert Partl, Irene Hyna, and Elisabeth Schlegl, 69 pp. This wonderful document is located:

~CTAN:packages/TeX/info/lshort/*.  
You can get a PostScript or .DVI version of the document ready for printing, or the native LaTeX document. There is also a version available in German: lkurz.*. Make sure to read the README file before assembling!

"A Gentle Introduction to TeX: A Manual for Self-Study," by Michael Doob, 91 pp. You can find this document at:

~CTAN:packages/TeX/info/gentle.tex
Almost of necessity, this document covers less ground than its LaTeX counterpart, above. However, it will get you to the same place as the LaTeX manuals, if you still must use plain TeX for your documents.

"IMPRINT: The Newsletter of Digital Typography," edited by Robert Kiesling. Yes, this is BLATANT and SHAMELESS self-promotion. But you should know anyway that IMPRINT is a free, ASCII text newsletter which is available via e-mail. IMPRINT appears approximately monthly and covers a broad range of text processing and digital imaging topics, both beginning and advanced. Many of the items covered apply directly or indirectly to TeX'ing, though. The emphasis is on production of industry-standard typeset and printed material. To subscribe to IMPRINT, send a brief, human-readable message to me at imprint@macline.com.

There are, of course, other guides available to using TeX and LaTeX. They cover different aspects of these systems to varying degrees. The reference documents cited above, however, are the most comprehensive in scope that I have seen and the most suitable for someone who is approaching these systems from scratch.

If the going gets especially tough, you can probably do a little extra shopping at Office Max, Office Depot, Staples, or another office-supply store, and pick up several reams of three-hole punched, photocopy paper, two or three, three-inch binders, and some index tabs. When it comes time to print the documents you'll need a place to keep them, and they seem to be more useful if they are kept on paper. This must be one of the stranger phenomena of technical documentation.

You will note, however, that the references mentioned above are hardware-independent. They won't tell you a thing about running teTeX specifically. Many of them, in fact, refer to some mythical "Local Guide." Well, gentle reader, this, and several of the documents which come bundled with teTeX comprise the less-than-mythical Local Guide to installing teTeX under Linux.


Previous Next Contents