Re: Determining pdf vs. dvi output at runtime

"Hans F. Nordhaug" <[email protected]>
Newsgroups gmane.comp.tex.tetex.general
Message-ID <[email protected]>
On Wed, Jun 01, 2005 at 03:16:14AM -0700, Jon Leech wrote:
> I have a document using this macro to control various actions depending on 
> whether it was
> being built under regular (pre-3.0) latex, or pdflatex:
> 
> \newif\ifpdf
> \ifx\pdfoutput\undefined
>   \pdffalse % we are not running PDFLaTeX
> \else
>   \pdfoutput=1 % we are running PDFLaTeX
>   \pdftrue
> \fi

Look at the ifpdf package. 

Hans
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.