Package: doxygen Version: 1.4.5-1 Severity: normal Tags: patch Hello!
LaTeX from teTeX-3.0 fails to process files generated by doxygen due
to a buggy test for the TeX engine used. This is because teTeX uses
now pdfTeX also for DVI output, so \pdfoutput is defined, but set to
false for DVI - but doxygen-generated TeX output test whether \pdfoutput
is defined.
This patch seems to fix the error:
diff -Nru doxygen-1.4.5/src/latexgen.cpp doxygen-1.4.5-hacked/src/latexgen.cpp
--- doxygen-1.4.5/src/latexgen.cpp 2005-08-24 21:14:29.000000000 +0400
+++ doxygen-1.4.5-hacked/src/latexgen.cpp 2005-12-22 19:54:38.000000000
+0300
@@ -235,19 +235,20 @@
}
if (Config_getBool("PDF_HYPERLINKS"))
{
- t << "\\ifx\\pdfoutput\\undefined" << endl
- << "\\usepackage[ps2pdf," << endl
+ t << "\\usepackage{ifpdf}" << endl
+ << "\\ifpdf" << endl
+ << "\\usepackage[pdftex," << endl
<< " pagebackref=true," << endl
<< " colorlinks=true," << endl
<< " linkcolor=blue" << endl
<< " ]{hyperref}" << endl
- << "\\usepackage{pspicture}" << endl
<< "\\else" << endl
- << "\\usepackage[pdftex," << endl
+ << "\\usepackage[ps2pdf," << endl
<< " pagebackref=true," << endl
<< " colorlinks=true," << endl
<< " linkcolor=blue" << endl
<< " ]{hyperref}" << endl
+ << "\\usepackage{pspicture}" << endl
<< "\\fi" << endl;
}
// Try to get the command for switching on the language
Related info:
#321998, also google for "FTBFS: texi2dvi doesn't produce dvi but pdf".
Thanks for considering,
Alexei
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.4.32-grsec-acl-i686-smp
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Versions of packages doxygen depends on:
ii libc6 2.3.5-9 GNU C Library: Shared libraries an
ii libgcc1 1:4.0.2-5 GCC support library
ii libpng12-0 1.2.8rel-5 PNG library - runtime
ii libstdc++6 4.0.2-5 The GNU Standard C++ Library v3
doxygen recommends no packages.
-- no debconf information
--
All science is either physics or stamp collecting.
signature.asc
Description: Digital signature

