\iftextures? (was: [OS X TeX] \colordvi in plain tex)

Maarten Sneep maarten.sneep at xs4all.nl
Sun Mar 6 13:07:33 EST 2005


On 6 mrt 2005, at 19:00, Bruno Voisin wrote:

> Similarly \ifpdf was also something that was defined in the macro 
> file, but this time automatically:
>
> \newif\ifpdf
> \ifx\pdfoutput\undefined
>   \pdffalse
> \else
>   \pdftrue
> \fi
>
> ifpdf.sty does essentially the same, but with a lot of tests 
> beforehand to look whether the switch has already been defined etc.

ifpdf.sty uses some of the code, but also checks the _value_ of 
\pdfoutput if it is defined.
Your code fails on pdftex --output-format=dvi, please use the 
maintained and debugged
code in ifpdf.sty. ifpdf.sty can be used under both tex and latex 
(\input ifpdf.sty or
\usepackage{ifpdf} respectively.)

Maarten

(Who has been bitten by the issue before)

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the MacOSX-TeX mailing list