diff options
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"; |