Washington State University HomeWSU
AdmissionsWSU CampusesWSU HomeWSU Search Tools*
edge graphic

Mathematics Department at WSU
2 Running LaTeX next up previous
Next: 3 Common Problems Up: localguide.html Previous: 1 LaTeX Facilities

2 Running LaTeX

In this section we describe how to go from raw LaTeX input to printed document. You should start by opening a command line session on one of the computers mentioned in the Local LaTeX document. You should also have a LaTeX input file. We'll pretend it is called filename.tex. The .tex extension is required.

To compile the document, type
displaymath186
at the command line. Note that the .tex was not included. If your input file is bug-free, a file should be created called filename.dvi .

This file is in a format called device independent. You may view it using the command
displaymath187
from the prompt. Note that your DISPLAY variable must be set properly for this to work. See Section 3.1 if you have trouble setting your display.

Once you are happy with how your output looks, you will want to print it out. For many machines - in general, those not running Linux - type
displaymath188
to convert the file filename.dvi to filename.ps in postscript format. To print this postscript file, type
displaymath189
at the prompt. This will only work if your PRINTER variable is set properly. See Section 3.2 if you have trouble setting your PRINTER variable. Also, the command lpr is not found on some machines in the department. On these machines, substitute the command lp for lpr.

On some machines - in general, those running Linux - the dvips filename command will simply print the output, combining the two steps above. Again, this will only work if your PRINTER variable is set properly. See Section 3.2 if you have trouble setting your PRINTER variable.



Created by: Andy Felt

Department of Mathematics
Washington State University

Wed Oct 21 13:41:40 PDT 1998