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
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
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
to convert the file filename.dvi to filename.ps in postscript format. To print this postscript file, type
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.