summaryrefslogtreecommitdiffstats
path: root/src/latexgen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r--src/latexgen.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index 086e012..4ad577e 100644
--- a/src/latexgen.cpp
+++ b/src/latexgen.cpp
@@ -543,8 +543,10 @@ static void writeDefaultFooter(FTextStream &t)
else
unit = "chapter";
t << "% Index\n"
+ "\\backmatter\n"
"\\newpage\n"
"\\phantomsection\n"
+ "\\clearemptydoublepage\n"
"\\addcontentsline{toc}{" << unit << "}{" << theTranslator->trRTFGeneralIndex() << "}\n"
"\\printindex\n"
"\n"
@@ -1260,7 +1262,7 @@ void LatexGenerator::startTitleHead(const char *fileName)
static bool usePDFLatex = Config_getBool("USE_PDFLATEX");
if (usePDFLatex && pdfHyperlinks && fileName)
{
- t << "\\hypertarget{" << stripPath(fileName) << "}{";
+ t << "\\hypertarget{" << stripPath(fileName) << "}{}";
}
if (Config_getBool("COMPACT_LATEX"))
{
@@ -1274,8 +1276,6 @@ void LatexGenerator::startTitleHead(const char *fileName)
void LatexGenerator::endTitleHead(const char *fileName,const char *name)
{
- static bool pdfHyperlinks = Config_getBool("PDF_HYPERLINKS");
- static bool usePDFLatex = Config_getBool("USE_PDFLATEX");
t << "}" << endl;
if (name)
{
@@ -1285,10 +1285,6 @@ void LatexGenerator::endTitleHead(const char *fileName,const char *name)
escapeMakeIndexChars(name);
t << "}}" << endl;
}
- if (usePDFLatex && pdfHyperlinks && fileName)
- {
- t << "}" << endl;
- }
}
void LatexGenerator::startTitle()
@@ -1428,18 +1424,12 @@ void LatexGenerator::startDoxyAnchor(const char *fName,const char *,
t << "\\hypertarget{";
if (fName) t << stripPath(fName);
if (anchor) t << "_" << anchor;
- t << "}{";
+ t << "}{}";
}
}
void LatexGenerator::endDoxyAnchor(const char *fName,const char *anchor)
{
- static bool pdfHyperlinks = Config_getBool("PDF_HYPERLINKS");
- static bool usePDFLatex = Config_getBool("USE_PDFLATEX");
- if (usePDFLatex && pdfHyperlinks)
- {
- t << "}";
- }
t << "\\label{";
if (fName) t << stripPath(fName);
if (anchor) t << "_" << anchor;