From c9067c5bb9a1868e0963dc210cf3b7152c4aa79a Mon Sep 17 00:00:00 2001 From: albert-github Date: Tue, 6 Jan 2015 13:28:52 +0100 Subject: Bug 742427 - latex compilation: \backmatter incompatible with COMPACT_LATEX=YES Removed \backmatter in case of COMPACT_LATEX --- src/latexgen.cpp | 10 +++++++--- 1 file 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" -- cgit v0.12