You are on page 1of 2

TUGboat, Volume 24 (2003), No.

2 163

What is TEX? separated as much as possible from that of deciding


what final form it should take. This has several ad-
Douglas Waud
vantages. For example, as I am typing this, I pay
This journal, TUGboat, first appeared in 1980 and no attention to how it will finally come out on the
has been going strong since. It provides a contin- page. That will be determined by TEX and ancil-
uous stream of articles which inform the reader on lary programs written by people who are far more
the latest developments in the field. And there is competent than I to produce an esthetically opti-
the problem — the journal has been in production mal final result. Now, if I have strong views, special
so long that readers are often assumed to know the training, or an area off the beaten track where what
context. This automatically provides a barrier to an I want is just not available (rare these days) I can
outsider who might stumble onto the journal and ask tweak to my heart’s content. But I don’t have to. If
“What’s going on here?” I simply want to “get the job done”, I can do just
The editors have therefore decided periodically that without distractions as to how everything will
to insert a primer, a brief summary, to let such a or should be printed. The only formatting I do is
newcomer know what we are so excited about. tell the program things like “This is what the title
will be”. In the present case, all I had to do was type
1 So what is the object of our affections? ‘\title{What is \TeX?}’ which, incidentally, shows
The simple answer is ‘TEX’. This is formally called a you how easy “talking TEX” can be; even if you
typesetting program, computer software for produc- know nothing whatsoever about TEX, I think you
ing nicely printed output. TEX came about when can read that segment of code. You have one foot
Professor Donald E. Knuth, at Stanford University, stuck in the flypaper already!
was planning to publish a series of books on com- Now we come to the jewel in the TEX crown —
puting. He discovered that the classical process of its ability to typeset mathematics properly. In this
typesetting books was no longer viable and its vari- area there is no competition. The American Math-
ous replacements were rapidly declining in quality — ematical Society, in fact, was one of TEX’s princi-
and so he decided to take a year off to rectify that pal sponsors; the vast majority of mathematicians,
omission. He got hooked and the year turned into physicists, and other scientists write their papers us-
ten. The centerpiece of his final solution was the ing TEX.
program TEX. In a nutshell, TEX allows ordinary When TEX was first developed computers were
people to produce beautiful output of top quality. rather primitive compared to today’s. Knuth rec-
Now, one unfamiliar with TEX may think “But ognized this and built in modularity. Thus, when
I can do that with my word processor!” However, TEX processes a file, it does not know what sort
that is a misconception. First, the output will gen- of printer or display will be used to view the result.
erally be a notch below that of TEX. The situation Knuth therefore had TEX put its output in a general
is analogous to good cooking; you may not know form which could then be used as input by “drivers”
what you are missing until you get a taste of a top designed to talk to whatever new printer or moni-
quality product. The word processors are getting tor came along. This intermediate form is called
better these days (for example, they are starting to a “device independent file” (with the file extension
incorporate many of TEX’s tricks) but there is still .dvi). In turn, there are file viewers, like xdvi in
catching up to do. GNU/Linux, for displaying such files on a computer
There is still another significant distinction. A screen.
word processor is described as “WYSIWYG”. This
2 Now meet the family
is an acronym for “What you see is what you get”,
with the implication that, as you type, the end result So far, I have been using the term TEX in its original
will appear precisely on the screen in front of you. context — the program Knuth wrote to carry out the
The TEX community interprets WYSIWYG tongue- magic. However, nowadays, the term “TEX” can
in-cheek as “What you see is all you get!” The point also imply a whole family of related programs. TEX
is that, once you get spoiled by TEX, you will not is just the grand-daddy of a family of related tools.
be satisfied with anything less than perfection. We can list the main cast now.
The WYSIWYG issue underlies an even more TEX First, TEX itself has gone through several up-
profound theme in TEX. There is a clear division of dates. TEX78 came first, TEX82 next, and the
labor. The job of deciding what you want to say is current and final version is TEX90. (You don’t
164 TUGboat, Volume 24 (2003), No. 2

really have to know these details since you will 3 What next?
only use the final version now.) At this point I encourage you to get your feet wet.
Metafont Next, a critical part of typesetting is the Specifically, try to create some documents in LATEX
fonts used. Therefore Knuth also pursued the (easier than pure TEX but not out on the “bleeding
design of typefaces for TEX. The result was a edge” enough to be overwhelming). First I would
companion program Metafont which can be recommend getting a manual. There are many out
used to produce tailored characters. (Again, there but I would suggest you start with Lamport’s
this is more for information; you will not be original guide [2]. Next you need to have a TEX
jumping into font design your first day!) system on your computer. If you use Linux, life is
LATEX Now we come to LATEX. This is a component easy; your distribution will probably already have
designed to shield the author from the details it installed. If you use Windows or a Macintosh I
of TEX. Leslie Lamport, the author of LATEX, suggest you start with Flynn’s excellent introduc-
recognized that, although TEX is very accessible tion [1]. If you do not have access to back copies of
for the sort of person who loves to wallow in TUGboat you can get it online from:
things computer, it can be very formidable to, http://www.tug.org/
shall we say, more normal folks. Thus he put tex-archive/info/beginlatex/html
together a simpler system designed to protect
where, in particular, the chapter “Installing TEX”
the author still further from the details of the
will be a succinct guide to getting a system installed.
underlying machinery. For example, he allows
One final parting word of advice: start with
the author simply to put something that is to to
something simple, perhaps just try an example from
be written exactly as it is typed between paired
Lamport’s book, and then add frills one at a time,
begin and end verbatim commands and allows
i.e. crawl before walk!.
the author to completely avoid having to make
any decision as to what type face to use, what 4 Online column
size, what style, and the like.
At the same time they are launching this column,
History: The original version, LATEX 2.09, has
TUG is planning an online journal which will include
been replaced by LATEX2e.
a column “\begin{here}” which will be directed to-
BibTEX BibTEX is an ancillary program to help ward the person first trying to come to grips with
organize bibliographic references. TEX. This column will attempt to identify and clar-
MakeIndex MakeIndex is another ancillary pro- ify standard stumbling blocks. This online journal
gram, this time for facilitating of creation of will be available at
an index. http://www.tug.org/pracjourn
dvips Earlier we mentioned .dvi files as a generic
form of output. With time, the need for a gen- References
eral file format was recognized more widely and [1] Peter Flynn. Formatting information.
the company Adobe Systems Inc. created the TUGboat, 23(2):115–237, 2002.
PostScript language. The TEX community re- [2] Leslie Lamport. LATEX: A Document
sponded with programs like dvips to convert Preparation System. Addison -Wesley, Reading,
.dvi files to .ps files. MA, 2nd edition, 1994.
pdfTEX and pdfLATEX The next step is where we
are currently. PostScript has been augmented  Douglas Waud
with the “Portable Document Format” (PDF), Department of Pharmacology
also a creation of the folks at Adobe. If you have University of Massachusetts
used the Acrobat reader to read a file, you have Medical School (retired)
been looking at a .pdf file. The TEX community 17 Lantern Lane, Shrewsbury, MA,
has kept up with this develoment with the pro- USA
gram pdfTEX and its LATEX variant pdfLATEX. douglas.waud@umassmed.edu
These allow one to use tricks available in the http://users.umassmed.edu/
douglas.waud/
.pdf format, in particular, to create “hyperref-
erences”, links to stuff on the web.

You might also like