[pdftex] Document portable to both latex and pdflatex - FAQ Problem??
David Carlisle
davidc at nag.co.uk
Thu Oct 18 10:46:33 CEST 2001
\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
you should just be able to go
\usepackage{graphicx}
your graphics.cfg file should automatically detect if it is running
under pdftex and do the right thing (the graphics.cfg distributed with
all the major distributions that include pdftex do this)
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
More information about the pdftex
mailing list