summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-01-06 18:43:39 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-01-06 18:43:39 (GMT)
commitab33e931873b2ccf5de8692a5cdc82feee7080d2 (patch)
tree95c63889a3ebf9b1c462711963db177b4c29bb9e
parent4addc3d6da0a55e8f63ea5987bb208d9ff63ed3d (diff)
parentc9067c5bb9a1868e0963dc210cf3b7152c4aa79a (diff)
downloadDoxygen-ab33e931873b2ccf5de8692a5cdc82feee7080d2.zip
Doxygen-ab33e931873b2ccf5de8692a5cdc82feee7080d2.tar.gz
Doxygen-ab33e931873b2ccf5de8692a5cdc82feee7080d2.tar.bz2
Merge pull request #285 from albert-github/feature/bug_742427
Bug 742427 - latex compilation: \backmatter incompatible with COMPACT_LATEX=YES
-rw-r--r--src/latexgen.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index d4d8fae..de2ed22 100644
--- a/src/latexgen.cpp
+++ b/src/latexgen.cpp
@@ -535,14 +535,18 @@ static void writeDefaultFooter(FTextStream &t)
Doxygen::citeDict->writeLatexBibliography(t);
// Index
+ t << "% Index\n";
QCString unit;
if (Config_getBool("COMPACT_LATEX"))
+ {
unit = "section";
+ }
else
+ {
unit = "chapter";
- t << "% Index\n"
- "\\backmatter\n"
- "\\newpage\n"
+ t << "\\backmatter\n";
+ }
+ t << "\\newpage\n"
"\\phantomsection\n"
"\\clearemptydoublepage\n"
"\\addcontentsline{toc}{" << unit << "}{" << theTranslator->trRTFGeneralIndex() << "}\n"