Matthias Mühlich
email: muehlich@iap.uni-frankfurt.de

LaTeX vs. pdfLaTeX

If you heard of pdfLaTeX and do not know whether you should use it instead of 'normal' LaTeX, here is your answer. (Well, at least some clues to find your personal answer yourself.)

Han The Thanh wrote the pdf(La)TeX program to create file in the Adobe pdf (portable document format) files directly instead of using the long chain latex -> dvips -> pstopdf.

Pdf(La)TeX is an extention of (La)TeX; just like (La)TeX, it can work with or without LaTeX macros, i.e. plain (pdf)TeX only. I will use the term pdfTeX in the rest of this page to simplify notation; this stand for both pdfTeX and pdfLaTeX.

Basically, pdftex is fully compatible with standard LaTeX (exceptions: see below), but offers some nice extra features. I personally use pdfLaTeX only and I can only recommend to do so, unless you absolutely need something which lies in the 0.5% incompatibility range...

Pros: Cons:

Note: my boss still wants to use LaTeX. It is possible to write *.tex files that run with both pdfLaTeX and LaTeX. For our lecture notes, I wrote the following code segment:

\ifx\pdfoutput\undefined
   \documentclass[german,dvips,a4paper,11pt,landscape]{report}
\else
   \documentclass[german,pdftex,a4paper,11pt,landscape]{report}
\fi

The optional arguments 'dvips' or 'pdftex' are provided as global options to the \documentclass command. Therefore, hyperref, graphicx or other packages that need specification of a graphics driver always take the correct option.

The pdfLaTeX home page (and further links, e.g. to Adobe's pdf specifications) can be found here.


back to TeX page