Indiana University
University Information Technology Services
  
What are archived documents?
Login>>
Login

Login is for authorized groups (e.g., UITS, OVPIT, and TCC) that need access to specialized Knowledge Base documents. Otherwise, simply use the Knowledge Base without logging in.

Close

What is TeX?

TeX (pronounced "teck") is a text formatting program, created by Donald Knuth. At Indiana University Bloomington, TeX version 3.14159 is available on Quarry.

On this page:


Creating TeX files

Any editor or word processing program that can create ASCII files can create TeX files. Inserting TeX commands into an ASCII file allows for more control over sophisticated document formats and provides many typesetting features such as ligatures and kerning. TeX offers the complex mathematical formula and technical writing symbols, as well as the characters used in most languages based on a Latin alphabet, in a wide variety of fonts.

TeX processes an ASCII file containing TeX commands and produces a device independent binary file called a DVI file. To produce a hard copy or a screen display of the DVI file, you need a printer or screen driver program. To create the DVI file, at the Unix prompt, enter:

tex filename

Replace filename with any valid filename, although it is customary to give it the extension .tex, in which case it is not necessary to type the extension. If the filename does not include the extension .tex , you will have to type out the full filename.

The program creates a log recording the error messages and results of the processing. The list file has the same filename but has the extension .lis . The DVI file has the same first name, but with the Extension .dvi . Processing messages and errors are also written to the screen by default.

Back to top

Related programs

LaTeX and AmS-TeX are two macro packages that simplify the process of creating document formats in TeX. All UITS central systems that have TeX also have LaTeX. LaTeX is the more popular of the two, and the AmS-TeX macros are available as a LaTeX-compatible package called amsmath.

Using LaTeX and AmS-TeX is similar to using TeX. To process a file that is written using LaTeX macros, instead of entering tex, you should enter:

latex filename

Replace filename with a filename of your choosing. Here, filename is assumed to have the tex extension. However, sometimes LaTeX files have the extension .ltx or .latex . Processing a LaTeX file with the tex command will not work.

Note: When using LaTeX, you will often have to enter this command twice in a row for LaTeX to completely process the file.

As with TeX, the list file is called filename.lis , and the DVI file is called filename.dvi .

Alternatively, to process an AmS-TeX file, enter:

amstex filename

Replace filename with a filename of your choosing. Here, filename is assumed to have the .tex extension.

Finally, BiBTeX is a popular bibliographic citation package often used in conjunction with TeX.

Back to top

TeX converters

You can convert all versions of WordPerfect documents to TeX or LaTeX with the K-Talk Communications product Publishing Companion.

K-Talk also carries TeXport, which converts Word and WordPerfect documents to TeX and LaTeX, including mathematical equations. TeXport can also convert documents from Ventura and PageMaker.

If you use Mac OS X, see the TeX on Mac OS X Wiki.

For links to freeware and shareware TeX and LaTeX converters, click Tools/Utilities.

Back to top

More information

For more information about TeX and LaTeX, you can view the manual page and GNU documentation. At the Unix prompt, enter:

man tex man latex info tex info latex

You can also find additional information, macros, and software on the web, at the Comprehensive TeX Archive Network (CTAN).

Back to top

This is document aazu in domain all.
Last modified on March 23, 2011.

Comments/Questions/Corrections

Use this form to offer suggestions, corrections, and additions to the Knowledge Base. We welcome your input!

If you are affiliated with Indiana University and would like assistance with a specific computing problem, please use the Ask a Consultant form, or contact your campus Support Center.

Contact Information

Note: We will reply to your comment at this address. If your message concerns a problem receiving email, please enter an alternate email address.