.dvi and .ps files - how to read and print them
To read, or print, a .dvi file - save it as a .ps file (postscript file) in your Unix directory.
How do I save it as a .ps file? Give the following command:
dvips -o filename.ps filename
The file is now saved as
filename.ps
Open the file and check that the very first line of the document says:
%!PS-Adobe-2.0
(delete any blank lines above this at the top of the page)
Open the file in ghostview with the command:
gv (space) filename.ps
Print the file from ghostview using the print button. Designate which printer it should be sent to.
It printed, but the page isn't correctly formatted - what am I doing wrong?
Open the file up in an editor.
Check to make sure there isn't a blank line above the
%!PS-Adobe-2.0
line. If there is, delete it.
Continue with step no. 3 above.