summaryrefslogtreecommitdiffstats
path: root/src/latexgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2007-06-10 20:20:58 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2007-06-10 20:20:58 (GMT)
commit01147699a7fb267e9d9247bdfb640f46e2164d3a (patch)
tree7cff22f841dca9c505e2db2f685ece0fc7d95142 /src/latexgen.cpp
parent0b087b99d43fb3803b26407d771ca32e6cf5c34b (diff)
downloadDoxygen-01147699a7fb267e9d9247bdfb640f46e2164d3a.zip
Doxygen-01147699a7fb267e9d9247bdfb640f46e2164d3a.tar.gz
Doxygen-01147699a7fb267e9d9247bdfb640f46e2164d3a.tar.bz2
Release-1.5.2-20070610
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r--src/latexgen.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index a64ad22..ab06be0 100644
--- a/src/latexgen.cpp
+++ b/src/latexgen.cpp
@@ -237,21 +237,22 @@ static void writeDefaultHeaderPart1(QTextStream &t)
}
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
<< " unicode" << endl
<< " ]{hyperref}" << endl
- << "\\usepackage{pspicture}" << endl
<< "\\else" << endl
- << "\\usepackage[pdftex," << endl
+ << "\\usepackage[ps2pdf," << endl
<< " pagebackref=true," << endl
<< " colorlinks=true," << endl
<< " linkcolor=blue," << endl
<< " unicode" << endl
<< " ]{hyperref}" << endl
+ << "\\usepackage{pspicture}" << endl
<< "\\fi" << endl;
}
// Try to get the command for switching on the language