Generating PostScript and PDF Documents

PS and PDF documents are generated by so-called drivers. The name of the driver is to be specified as an option in the following notes: Figures, Colours, PDF Hyper References. The listed commands are compulsory for the given driver.

Driver: dvips

Driver: pdftex

  pdflatex <file>.tex

Driver: dvipdfm

Useful hints

How to tell apart pdftex and other drivers:

\ifx\pdftexversion\undefined
    \usepackage[dvips]{graphics} %\usepackage[dvipdfm]{graphics}
else
    \usepackage[pdftex]{graphics}
fi

See Compiling LaTeX Documents and PDF Bookmarks

Feedback is always welcome! If you'd like to get in touch with me concerning the contents of this article, please use Twitter.