Introduction
DVI, device independent, is the typeset page output of TeX. It records where characters and rules go on each page without being tied to a particular printer or screen; driver programs turn it into what a device needs. Fonts are not inside the file.
Structure
A DVI file is a stream of commands, each a one-byte operation code with its parameters. A preamble, beginning with the code 247 and the format identification 2, is followed by the pages and then a postamble beginning with 248. The file ends with the code 249, a pointer back to the postamble, the identification byte and at least four bytes of value 223.
Not described
This page is a first outline. The commands are not yet described here.
Known, not yet covered
- Reference: every operation code and its parameters, the units, and extensions used by variants of TeX.
- Viewer: the site has no viewer for this format.
Links
Software
- dvitype – lists the contents of a DVI file as text; in TeX Live and MiKTeX
Reference
- The DVItype processor – the program source with the format described
- DVI Driver Standard, Level 0, the DVI file – TeX source of the appendix