[texhax] Automated package option choice possible?

Uwe Lueck uwe.lueck at web.de
Tue Sep 14 08:44:03 CEST 2010


Philipp Stephani <st_philipp at yahoo.de>, 13.09.2010 23:12:42:
>Am 13.09.2010 um 22:13 schrieb Beuthe, Thomas:
>> There are at least two packages that require option choices 
>> that depend on what program you are using to compile your LaTeX files:
>> color and hyperref.
>> 
>> Compile in pdflatex?  You need to use the pdftex option.
>> Using xelatex? You need to use xetex option, and so on.
>
>> This is not correct. Both packages know about the engine 
>> that is used for compilation. You need driver options if and only 
>> if you want to create a DVI file and post-process that file 
>> with something else than dvips.

Ok, nevertheless I use ifpdf for typesetting DVI "drafts" while "final" is PDF:

    \usepackage[\ifpdf\else draft\fi]{hyperref}

or the like.

I tried to reach Vafa Khaligi for his `iftex'---bounced---what his most recent email address?

Cheers, 

    Uwe.


More information about the texhax mailing list