
LaTeX or TeX users note: You can use dvips.
For example:
To print the first 7 pages of a dvi file, type:
dvips -l 7 -Pprinter file.dvi
To print ages 22 to 31 of a dvi file, type:
dvips -p 22 -l 31 -Pprinter file.dvi
If the program you're using doesn't automatically show what the printed file will look like, see if there is some way to preview it.
gv filename &
This program also lets you select specific pages for printing.
xdvi filename.dvi &
If you have already sent a print job or are thinking of sending a print job to printer <printername>, you can check to see how many jobs are already in the queue by typing:
lpq -P<printername>
If you decide that that you don't want to print a file after you've sent it to the printer, use:
lpq -P<printername>
to get the job number of your print job, e.g.
Rank Owner Job Files Total Size active mikeuser 524 test.html 240 bytes 1st joeuser 525 myfile.html 2019 bytes
You can then kill your print job using the lprm command. For example, joeuser would use:
lprm -P<printername> 525
to kill his print job.
Back to the Math Howto Index Page
Back to the Math Computing Home Page
Back to the Math Home Page

This page was last updated on February 7, 2003. Questions, suggestions, and general grumpings should be sent to webmaster_at_math.okstate.edu