diff options
-rw-r--r-- | src/config.l | 1 | ||||
-rw-r--r-- | src/latexgen.cpp | 10 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/config.l b/src/config.l index a10626e..4fa3b1e 100644 --- a/src/config.l +++ b/src/config.l @@ -1478,6 +1478,7 @@ void Config::check() !Config_getBool("GENERATE_XML") && !Config_getBool("GENERATE_PERLMOD") && !Config_getBool("GENERATE_RTF") && + !Config_getBool("GENERATE_DOCBOOK") && !Config_getBool("GENERATE_AUTOGEN_DEF") && Config_getString("GENERATE_TAGFILE").isEmpty() ) 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" |