Name

xdvi — stdin  stdout  - file  -- opt  --help  --version

Synopsis

xdvi [options] file

The document processing system TeX produces binary output files in a format called DVI, with suffix .dvi. The viewer xdvi displays a DVI file in an X window. While displaying a file, xdvi has a column of buttons down the right-hand side with obvious uses, such as Next to move to the next page. (You can hide the buttons by invoking xdvi with the -expert option.) You can also navigate the file by keystroke.

Keystroke

Meaning

q

Quit.

n

Jump to next page. (Alternatively, press Space bar, Enter, or Pagedown.) Precede it with a number N to jump by N pages.

p

Jump to previous page. (Alternatively, press Backspace, Delete, or Pageup.) Precede it with a number N to jump by N pages.

<

Jump to first page.

>

Jump to last page.

^L

Redisplay the page.

R

Reread the DVI file, say, after you’ve modified it.

Any mouse button

Magnify a rectangular region under the mouse cursor.

xdvi has dozens of command-line options for tailoring its colors, geometry, zoom, and overall behavior.

If you prefer, convert a DVI file to PostScript via the dvips command and then use GhostView (gv) to display it:

$ dvips -o myfile.ps myfile.dvi
$ gv myfile.ps

Get Linux Pocket Guide, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.