Installing TeX
TeX (pronounced "tek") is a markup language for text and figures. TeX takes a plain-text file containing the marked-up text of a document and produces a typeset device independent file (DVI) that can be converted to PostScript, Adobe PDF, or printer control language and sent to a commercial publisher or a PostScript printer. TeX provides exceptionally strong support for mathematical formulas and symbols, and is the preferred format for almost every major science and technical journal published today.
TeX was developed in the late 1970s by Donald Knuth, now a Professor Emeritus of Computer Science at Stanford University. Knuth was writing a series of books titled The Art of Computer Programming, and thought the computer-generated typesetting was clunky and ugly. Like most computer scientists he decided he could build a better mousetrap (or computer typesetting program in this case), and began work on TeX. (Knuth was later awarded the Turing Award for his books.)
This document provides step-by-step instructions for installing a TeX distribution on your UNIX or Linux system. The most popular TeX distribution by far is teTeX, which is relatively easy to install, freely available, and contains lots of nifty extras. To install teTeX on your system, perform the following steps.
|
[root@mustafa /] mkdir /usr/local/teTeX [root@mustafa /] chmod 755 /usr/local/teTeX |
|
[root@mustafa /] mkdir /usr/local/teTeX/texmf [root@mustafa /] chmod 755 /usr/local/teTeX/texmf |
|
[root@mustafa /] cd /usr/local/teTeX/texmf [root@mustafa texmf] mv /export/home/build/teTeX-texmf-1.0.2.tar.gz . |
|
[root@mustafa texmf] gzip -d teTeX-texmf-1.0.2.tar.gz [root@mustafa texmf] tar xfv teTeX-texmf-1.0.2.tar |
Optionally, you may delete the archive once the files have been extracted to save disk space.
| [root@mustafa texmf] rm teTeX-texmf-1.0.2.tar |
|
[lamont@mustafa texmf] cd /export/home/build [lamont@mustafa build] gzip -d texmf-1.0.2.tar.gz [lamont@mustafa build] tar xfv texmf-1.0.2.tar |
|
[lamont@mustafa build] cd teTeX-1.0 [lamont@mustafa teTeX-1.0] ./configure --prefix=/usr/local/teTeX --disable-multiplatform |
While the configure program is running, a large amount of output will scroll up the screen.
|
[lamont@mustafa teTeX-1.0] make all |
|
[root@mustafa teTeX-1.0] make install strip |
|
[root@mustafa /] texconfig dvips paper letter [root@mustafa /] texconfig xdvi us |
If you run texconfig with no arguments, it will enter interactive mode and let you navigate through all of the configuration options with a curses-based dialog system. If you have the time, it's worth running to see what options are available.
|
[root@mustafa /] cp /usr/local/teTeX/man/man1/* /usr/share/man/man1 |
|
[lamont@mustafa build] rm -rf teTeX-1.0 [lamont@mustafa build] rm teTeX-src-1.0.7.tar.gz |
Congratulations! You now have a working copy of TeX on your system.