[pdftex] Document portable to both latex and pdflatex - FAQ Problem??

Heiko Oberdiek oberdiek at ruf.uni-freiburg.de
Thu Oct 18 12:25:34 CEST 2001


On Thu, 18 Oct 2001, David Carlisle wrote:

> \ifx\pdfoutput\undefined
>   \pdffalse % we are not running PDFLaTeX
> \else
>   \pdfoutput=1 % we are running PDFLaTeX
>   \pdftrue
> \fi

There are people that are using pdfTeX in DVI mode,
because they want to use the additional features
(protruding, for example). Therefore I have written
ifpdf.sty that checks for pdfTeX but does not change
the mode, eg:

\usepackage{ifpdf}
\ifpdf
  \usepackage[pdftex]{some_package}
  \pdfcompresslevel=9
\else
  \usepackage[dvips]{some_package}
\fi

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>




More information about the pdftex mailing list