summaryrefslogtreecommitdiffstats
path: root/src/cite.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2014-09-03 12:32:23 (GMT)
committeralbert-github <albert.tests@gmail.com>2014-09-03 12:32:23 (GMT)
commitfb4dad1e1d9774e92d1509d1c2d3f8cb341826a1 (patch)
tree58d73d33bf97774717556f0c792115fed834dc5c /src/cite.cpp
parent41887832b90698df95e8d222cdc0a541ae2f2284 (diff)
downloadDoxygen-fb4dad1e1d9774e92d1509d1c2d3f8cb341826a1.zip
Doxygen-fb4dad1e1d9774e92d1509d1c2d3f8cb341826a1.tar.gz
Doxygen-fb4dad1e1d9774e92d1509d1c2d3f8cb341826a1.tar.bz2
Different latex problems
- Bibliography refers to wrong page in the toc In case of LaTeX the reference in the toc tab to the Bibliography page is not correct. According to e.g. http://lookherefirst.wordpress.com/2008/10/05/add-the-bibliography-in-the-table-of-contents/ when using the hyperref package the reference of the toc should be after the \bibliography entry. See to it that the Bibliography page starts at an odd page (like all other chapters) - See to it that the Index page starts at an odd page (like all other chapters) - Not all items are shown in the Index / Index generation crashes (Bug_733323) / Index is not shown The \hypertarget definition contains on 2 places the entire string (including section references and index references) in the caption part. In all other places the caption is empty and the caption part is not used (as a reference) in the \hyperlink command. The caption has been made empty/
Diffstat (limited to 'src/cite.cpp')
-rw-r--r--src/cite.cpp19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/cite.cpp b/src/cite.cpp
index a33f12f..d128fa8 100644
--- a/src/cite.cpp
+++ b/src/cite.cpp
@@ -62,9 +62,14 @@ void CiteDict::writeLatexBibliography(FTextStream &t)
unit = "chapter";
t << "% Bibliography\n"
"\\newpage\n"
- "\\phantomsection\n"
- "\\addcontentsline{toc}{" << unit << "}{" << theTranslator->trCiteReferences() << "}\n"
- "\\bibliographystyle{" << style << "}\n"
+ "\\phantomsection\n";
+ bool pdfHyperlinks = Config_getBool("PDF_HYPERLINKS");
+ if (!pdfHyperlinks)
+ {
+ t << "\\clearemptydoublepage\n";
+ t << "\\addcontentsline{toc}{" << unit << "}{" << theTranslator->trCiteReferences() << "}\n";
+ }
+ t << "\\bibliographystyle{" << style << "}\n"
"\\bibliography{";
QStrList &citeDataList = Config_getList("CITE_BIB_FILES");
QCString latexOutputDir = Config_getString("LATEX_OUTPUT")+"/";
@@ -87,8 +92,12 @@ void CiteDict::writeLatexBibliography(FTextStream &t)
}
bibdata = citeDataList.next();
}
- t << "}\n"
- "\n";
+ t << "}\n";
+ if (pdfHyperlinks)
+ {
+ t << "\\addcontentsline{toc}{" << unit << "}{" << theTranslator->trCiteReferences() << "}\n";
+ }
+ t << "\n";
}
void CiteDict::insert(const char *label)