Re: [tetex 3.0] Swapping between dvi and pdf

Reinhard Kotucha <[email protected]> Thu, 29 Sep 2005 23:07:35 +0200
Newsgroups gmane.comp.tex.tetex.general
Message-ID <[email protected]>
>>>>> "Kev" == Kev Buckley <[email protected]> writes:

  > 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


This doesn't work.  Nowadays all formats are based on pdftex, so
\pdfoutput is always defined.  You have to check whether it is set to
0 or 1.

Please remove the lines i've cited and replace them with either
\usepackage{ifpdf} (LaTeX) or \input ifpdf.sty (plain TeX).

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-4592165
Marschnerstr. 25
D-30167 Hannover	                      mailto:[email protected]
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------