.dvi and .ps files - how to read and print them


  1. 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

  2. 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)

  3. Open the file in ghostview with the command:

    gv (space) filename.ps

  4. 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?

  1. Open the file up in an editor.

  2. Check to make sure there isn't a blank line above the %!PS-Adobe-2.0 line. If there is, delete it.

  3. Continue with step no. 3 above.