Skip to main content
Service phase: Beta

This service is still in development. Give us your feedback or view this page on the current PRONOM service.

Format

TeX/LaTeX Device Independent Document

Summary

Name
TeX/LaTeX Device Independent Document
Identifiers
  • MIME: application/x-dvi
  • PUID: fmt/160
Format type
Page Description
Disclosure
Full
Description
The Device Independent File Format (DVI) is the output file format of the TeX typesetting program. DVI files comprise binary data describing the visual layout of a document in a device-independent manner. A DVI file consists of a preamble, a sequence of commands defining one or more pages of text, and a postamble. Each command comprises an eight-bit opcode, followed by zero or more bytes of parameters. DVI driver software is required to render or print DVI files, or to convert them to other formats, such as PostScript or PDF.
File extensions
dvi
Source
Digital Preservation Department / The National Archives

Internal signatures

TeX/LaTeX Device-Independent Document

Note
Opcode 0xF7, pre (the preamble) must be the first opcode in the DVI file. It takes at least fourteen bytes of parameters, plus an optional comment of up to 255 bytes. The first parameter is 1 byte that identifies DVI format; currently this byte is always set to 0x02. Opcode 0xF9, post_postamble is the last opcode of the dvi file. It is followed by a 4 byte pointer to the post command that started the postamble. An identification byte, comes next, which currently equals 0x02. The identification byte is followed by four or more bytes that are all equal to 0xDF. TeX puts out four to seven of these trailing bytes, until the total length of the file is a multiple of four bytes.

Byte sequences

Min Frag Length
Absolute from BOF
Offset
0
Max offset
None
Byte Sequence
F702
Endianness
None
Min Frag Length
Absolute from EOF
Offset
0
Max offset
None
Byte Sequence
F9{4}02{0-3}DFDFDFDF
Endianness
None

Changelog

  • Added in V58

    Release date
    21 March 2012

    TeX/LaTeX Device Independent Document: Format name changed for greater accuracy and consistency.

    TeX/LaTeX Device-Independent Document: Signature submitted by Georgia Tech Research Institute, USA.