summaryrefslogtreecommitdiffstats
path: root/src/cite.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2013-03-24 11:51:51 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2013-03-24 11:51:51 (GMT)
commit92a0f3fc0733931284deebb74a1d36ca7a290bfe (patch)
tree8d5749ba8d587d7b753162c524b18f7e7cdf6a0b /src/cite.cpp
parentf1d6ab7c7698dcc86b0d499aec1eb1f3612209d5 (diff)
downloadDoxygen-92a0f3fc0733931284deebb74a1d36ca7a290bfe.zip
Doxygen-92a0f3fc0733931284deebb74a1d36ca7a290bfe.tar.gz
Doxygen-92a0f3fc0733931284deebb74a1d36ca7a290bfe.tar.bz2
Release-1.8.3.1-20130324
Diffstat (limited to 'src/cite.cpp')
-rw-r--r--src/cite.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/cite.cpp b/src/cite.cpp
index 91dd1e1..d4860c8 100644
--- a/src/cite.cpp
+++ b/src/cite.cpp
@@ -88,11 +88,19 @@ static QCString getListOfBibFiles(const QCString &sep,bool namesOnly)
void CiteDict::writeLatexBibliography(FTextStream &t)
{
- if (m_entries.count()==0) return;
+ if (m_entries.isEmpty())
+ return;
+
QCString style = Config_getString("LATEX_BIB_STYLE");
- if (style.isEmpty()) style="plain";
- t << "\\newpage \\bibliographystyle{" << style << "}" << endl;
- t << "\\bibliography{" << getListOfBibFiles(",",TRUE) << "}" << endl;
+ if (style.isEmpty())
+ style="plain";
+ t << "% Bibliography\n"
+ "\\newpage\n"
+ "\\phantomsection\n"
+ "\\addcontentsline{toc}{part}{" << theTranslator->trCiteReferences() << "}\n"
+ "\\bibliographystyle{" << style << "}\n"
+ "\\bibliography{" << getListOfBibFiles(",",TRUE) << "}\n"
+ "\n";
}
void CiteDict::insert(const char *label)