Re: [tetex 3.0] Swapping between dvi and pdf

"Hans F. Nordhaug" <[email protected]> Thu, 29 Sep 2005 22:05:53 +0200
Newsgroups gmane.comp.tex.tetex.general
Message-ID <[email protected]>
* Kev Buckley <[email protected]> [2005-09-29]:
> 
> I used ensure I got the right output by having constructs at the top
> of the source files like this:
> 
> \newif\ifpdf
> \ifx\pdfoutput\undefined
>     \pdffalse       % we are not running PDFLaTeX
> \else
>     \pdfoutput=1    % we are running PDFLaTeX
>     \pdftrue
> \fi

Use the ifpdf package. (This is a FAQ.)

Regards,
Hans