xdvi

When you TeX a file using amstex or latex (or just plain tex) a new file is created with a .dvi extension. For example, if you have a TeX file called paper.tex the command

amstex paper

will create a file called paper.dvi and you can print the file to the printer lpub6 by typing

dvips -Plpub6 paper

Note: Here are some printers and their locations:

Printers:       lpub    Computer room, Rm 839
                lpub7   Room 741
                lpub6   Room 635

If your xterm is on peano.math.purdue.edu, you can print to the printer in LAEB B-286 by typing this:

dvips -f paper | lpr -Plaebb286hp@franklin.cc


If you want to preview the TeX output before you print it, use the xdvi command in an xterm as follows. (xdvi won't work from a telnet session because it tries to create X-window output.) Just type

xdvi paper &

and your file paper.dvi will be shown on the screen just as it will print. (The ampersand & puts the xdvi job in the "background" and enables you to continue to use the xterm window for other commands.)

Here is a list of handy one keystroke commands that you will want to use instead of trying to mess around with the scroll bars.

u     Moves the page UP
d     Moves the page DOWN
n     Moves to the NEXT page
p     Moves to the PREVIOUS page
q     QUITS xdvi and makes the window go away
x     (for EXPERT) makes the bottons on the right
      side of the xdvi window go away and come back

You can even preview TeX files that have PostScript figures embedded in them. See How to put figures in TeX.


Back to the MATH 2000 HOME PAGE