[debiandoc-sgml-pkgs] Bug#321942: debiandoc-sgml: Always produces
PDF output with teTeX-3.0, no DVI
Frank Küster
frank at debian.org
Mon Aug 8 11:47:10 UTC 2005
Package: debiandoc-sgml
Version: 1.1.88
Severity: important
in tools/lib/Format/LaTeX.pm there is code that inserts the following
code into the generated *tex file:
\ifx\pdfoutput\undefined
\usepackage[hypertex,colorlinks=true]{hyperref}
\else
\usepackage[pdftex,colorlinks=true,<languageoptions>]{hyperref}
\fi
This breaks with teTeX-3.0 (now in experimental, soon in unstable),
because we now use pdfTeX to produce both DVI and PDF output.
Therefore, \pdfoutput is always defined, it's just 0 for DVI output.
The portable solution to this would be to use ifpdf.sty and its \ifpdf
command.
In this case, however, it isn't necessary at all, because hyperref
detects itself whether DVI or PDF output is produced, and will choose
the correct drivers for dvips or pdfTeX, respectively.
Therefore the attached patch will fix this bug. Note that is going to
become of RC severity as soon as teTeX-3.0 enters unstable.
Regards, Frank
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hyperref.patch
Type: text/x-patch
Size: 1537 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debiandoc-sgml-pkgs/attachments/20050808/ad13ad07/hyperref.bin
-------------- next part --------------
--
Frank K?ster
Inst. f. Biochemie der Univ. Z?rich
Debian Developer
More information about the Debiandoc-sgml-pkgs
mailing list