Indiana University
University Information Technology Services
  
What are archived documents?
Login>>
Login

Login is for authorized groups (e.g., UITS, OVPIT, and TCC) that need access to specialized Knowledge Base documents. Otherwise, simply use the Knowledge Base without logging in.

Close

ARCHIVED: What is dvips, and how do I use it to print DVI files?

In Unix, the dvips command takes a DVI file, produced by TeX or LaTeX, and turns it into a PostScript file. It then attempts to print the file on the default printer, unless told otherwise.

You can send the output of the dvips command to a file using the -o switch. For example, to convert the DVI file myfile.dvi into a PostScript file named newfile.ps, you would enter: dvips -o newfile.ps myfile.dvi

Although the output of the dvips command can be redirected, its input cannot be taken from a pipe, but instead, must be redirected from a file. For example, you could enter:

dvips -f < myfile.dvi | 2up | psduplex | lpr -Pps99

This would convert myfile.dvi to PostScript, send it to the 2up command for side-by-side printing, filter through psduplex for double-sided printing, and use the BSD print command to send the output to the printer named ps99 (which is assumed to be PostScript and double-sided compatible).

At Indiana University, the dvips command is available on Steel in the /usr/local/bin directory.

Note: On June 23, 2008, Steel will become read-only; you will be able to access your files there but not change them or add new files. Steel is replaced by IU's newest supercomputer, Quarry. For more, see ARCHIVED: About the Steel retirement.

This is document afyn in domain all.
Last modified on November 01, 2008.

Comments/Questions/Corrections

Use this form to offer suggestions, corrections, and additions to the Knowledge Base. We welcome your input!

If you are affiliated with Indiana University and would like assistance with a specific computing problem, please use the Ask a Consultant form, or contact your campus Support Center.

Contact Information

Note: We will reply to your comment at this address. If your message concerns a problem receiving email, please enter an alternate email address.