[tex-live] hyperref.cfg/\@ifundefined

Heiko Oberdiek oberdiek@ruf.uni-freiburg.de
Wed, 5 Jun 2002 15:20:11 +0200 (MET DST)


hyperref.cfg of TeX Live contains:

  [2001/06/04 v1.0 hyperref configuration of TeXLive]

A good idea to switch the default from "hypertex" to
"dvips" if pdfTeX is not running.

This check for pdfTeX, however, is problematic:
* After \@ifundefined{pdfoutput} \pdfoutput will
  have the meaning \relax if it is previously \undefined.
* There are people that want to use pdfTeX in DVI mode
  (for example they want to have the non-PDF features of
  pdfTeX, but cannot use pdfTeX in PDF mode because of
  psfrag, pstricks, ...)

Therefore I suggest:

  [2001/06/05 v1.1 hyperref configuration of TeXLive]
% Change default driver option to "dvips" unless
% pdfTeX is running in PDF mode.
    % pdfTeX is not running
      % result of \@ifundefined{pdfoutput}
        % \pdfoutput=0 ==> DVI mode
        % \pdfoutput=1 ==> PDF mode

Yours sincerely
  Heiko <oberdiek@uni-freiburg.de>