Running LaTeX
To process an input file and making a postscript (.ps) file is a two-stage
process. Assuming you have a file example1.tex:
-
Create a DVI file directly from the prompt with the command
% latex example1.tex
-
At this stage, you can view your document with
% xdvi example1.dvi &
-
When you are ready to print out your document, you can create a postscript
file from the DVI file with
% dvips example1.dvi
-
and then print out the postscript file as usual with
-
From within Emacs:
-
Open your input file on emacs:
-
To create a DVI file, go to the menu on the top of the window:

and click on Command + latex. After some seconds, you
should get the following message on the bottom line of the window:
Latex: successfully formatted {1} page.
-
To visualize the DVI file click now on Command + Xdvi
and press [Return]. A new window pops up showing the document.
-
To create the ps file click on Command + File and press
[Return]. The following message should pop up on the bottom line of the
window: File:Done.
-
To view the ps file go to the penguin prompt and type:
% ghostview example1.ps &
-
To print the ps file from ghostview click on File + Print
document. A small window pops up where you should type lpr
and click on Print.