diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2013-09-28 10:51:48 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2013-09-28 10:51:48 (GMT) |
commit | 8e0e64c08eea1f43bec0773633268d2a0144615e (patch) | |
tree | e376108732dc5b3d2be776c6431b866e1149dbc9 /src/cite.cpp | |
parent | bf8ecf7749d846a1f1b28ab01953ad55989b87a8 (diff) | |
download | Doxygen-8e0e64c08eea1f43bec0773633268d2a0144615e.zip Doxygen-8e0e64c08eea1f43bec0773633268d2a0144615e.tar.gz Doxygen-8e0e64c08eea1f43bec0773633268d2a0144615e.tar.bz2 |
LaTeX: Fix ToC entries of index/bibliography
Diffstat (limited to 'src/cite.cpp')
-rw-r--r-- | src/cite.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cite.cpp b/src/cite.cpp index 576c4bf..ca0fb1a 100644 --- a/src/cite.cpp +++ b/src/cite.cpp @@ -94,10 +94,15 @@ void CiteDict::writeLatexBibliography(FTextStream &t) QCString style = Config_getString("LATEX_BIB_STYLE"); if (style.isEmpty()) style="plain"; + QCString unit; + if (Config_getBool("COMPACT_LATEX")) + unit = "section"; + else + unit = "chapter"; t << "% Bibliography\n" "\\newpage\n" "\\phantomsection\n" - "\\addcontentsline{toc}{part}{" << theTranslator->trCiteReferences() << "}\n" + "\\addcontentsline{toc}{" << unit << "}{" << theTranslator->trCiteReferences() << "}\n" "\\bibliographystyle{" << style << "}\n" "\\bibliography{" << getListOfBibFiles(",",TRUE) << "}\n" "\n"; |