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

Jörg Spanke spanke at isas-dortmund.de
Thu Oct 18 10:33:23 CEST 2001

I guess your preamble looks like:

----------------------- begin code ----------------
> Check for the existence of the variable \pdfoutput:
% Check for the existence of the variable \pdfoutput:

> \newif\ifpdf
> \ifx\pdfoutput\undefined
>   \pdffalse % we are not running PDFLaTeX
> \else
>   \pdfoutput=1 % we are running PDFLaTeX
>   \pdftrue
> \fi
> %Then use your new variable \ifpdf
> \ifpdf
>   \usepackage[pdftex]{graphicx}
>   \pdfcompresslevel=9
> \else
>   \usepackage{graphicx}
> \fi


--------------- end code -------------------------

This is working for me and with the commands: 

you can put all your graphics for "normal" LaTeX in a directory called "EPS" 
and the same graphics for pdflatex in the directory "PDF". Then you only use 
the first part of the filename for the \includegraphics command (see graphics 
manual). Please beware that pdflatex only accepts the file formats 
mentioned in the \DeclareGraphicsExtensions command.



Jörg Spanke
Institut für Spektrochemie und angewandte Spektroskopie
Bunsen-Kirchhoff Str. 11
44139 Dortmund

Tel. +49-231-1392-212
Fax. +49-231-1392-120
email spanke at isas-dortmund.de


More information about the pdftex mailing list