LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

dvips

convert DVI to PostScript

TLDR

Convert DVI to PostScript
$ dvips [document.dvi] -o [document.ps]
copy
Convert specific pages
$ dvips -p [5] -l [10] [document.dvi] -o [output.ps]
copy
Output to stdout
$ dvips [document.dvi] -o -
copy
Convert for specific paper size
$ dvips -t [letter] [document.dvi] -o [output.ps]
copy
Convert in landscape mode
$ dvips -t landscape [document.dvi] -o [output.ps]
copy
Generate PDF via ps2pdf
$ dvips [document.dvi] -o - | ps2pdf - [document.pdf]
copy

SYNOPSIS

dvips [options] file.dvi

DESCRIPTION

dvips converts DVI (DeVice Independent) files produced by TeX and LaTeX into PostScript. The output can be printed directly or converted to PDF using tools like ps2pdf.The program processes DVI instructions, embeds fonts, and generates PostScript code. It supports font substitution, paper size selection, and various optimization options for different output devices.

PARAMETERS

-o file

Output file name (- for stdout).
-p num
First page to output.
-l num
Last page to output.
-t paper
Paper type: letter, a4, landscape.
-D dpi
Resolution in dots per inch.
-x mag
Magnification factor.
-c copies
Number of copies.
-e num
Maximum drift in pixels.
-Z
Compress bitmap fonts.
-Ppdf
Optimize for PDF conversion.

INSTALL

sudo apt install texlive-binaries
copy
sudo apk add texlive-dvi
copy

CAVEATS

Requires Type 1 or bitmap fonts to be installed. Some modern TeX workflows use pdflatex or xelatex directly, bypassing DVI. PostScript output may be large; use -Z for compression. Font paths must be configured in texmf.cnf.

HISTORY

dvips was written by Tomas Rokicki in the late 1980s and has been a standard part of TeX distributions since. It remains widely used despite direct PDF generation becoming more common. The program is maintained as part of TeX Live.

SEE ALSO

latex(1), ps2pdf(1), pdflatex(1), tex(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid