summaryrefslogtreecommitdiffstats
path: root/src/latexgen.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2011-02-17 19:40:38 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2011-02-17 19:40:38 (GMT)
commit2eccbfdb1a422e1ee594b1906de13d3f4a070c06 (patch)
treec2ee5bb85f9acfb3caa8479c32b49a1bf03de752 /src/latexgen.cpp
parente3867f798e35c06c2208899f9c0bc264d8e6cb83 (diff)
downloadDoxygen-2eccbfdb1a422e1ee594b1906de13d3f4a070c06.zip
Doxygen-2eccbfdb1a422e1ee594b1906de13d3f4a070c06.tar.gz
Doxygen-2eccbfdb1a422e1ee594b1906de13d3f4a070c06.tar.bz2
Release-1.7.3-20110217
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r--src/latexgen.cpp25
1 files changed, 23 insertions, 2 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index 4d8b23b..ff00d0f 100644
--- a/src/latexgen.cpp
+++ b/src/latexgen.cpp
@@ -257,6 +257,7 @@ static void writeDefaultHeaderPart1(FTextStream &t)
t << "\\makeindex\n"
"\\setcounter{tocdepth}{3}\n"
"\\renewcommand{\\footrulewidth}{0.4pt}\n"
+ "\\renewcommand{\\familydefault}{\\sfdefault}\n"
"\\begin{document}\n";
static bool pdfHyperlinks = Config_getBool("PDF_HYPERLINKS");
static bool usePDFLatex = Config_getBool("USE_PDFLATEX");
@@ -762,6 +763,12 @@ static void writeDefaultStyleSheetPart3(FTextStream &t)
t << "\\definecolor{vhdlchar}{rgb}{0.0,0.0,0.0}\n";
}
+static void writeDefaultFooter(FTextStream &t)
+{
+ t << "\\printindex\n";
+ t << "\\end{document}\n";
+}
+
void LatexGenerator::writeHeaderFile(QFile &f)
{
FTextStream t(&f);
@@ -772,6 +779,12 @@ void LatexGenerator::writeHeaderFile(QFile &f)
writeDefaultHeaderPart3(t);
}
+void LatexGenerator::writeFooterFile(QFile &f)
+{
+ FTextStream t(&f);
+ writeDefaultFooter(t);
+}
+
void LatexGenerator::writeStyleSheetFile(QFile &f)
{
FTextStream t(&f);
@@ -993,6 +1006,7 @@ void LatexGenerator::endIndexSection(IndexSections is)
//static bool compactLatex = Config_getBool("COMPACT_LATEX");
static bool sourceBrowser = Config_getBool("SOURCE_BROWSER");
static QCString latexHeader = Config_getString("LATEX_HEADER");
+ static QCString latexFooter = Config_getString("LATEX_FOOTER");
switch (is)
{
case isTitlePageStart:
@@ -1211,8 +1225,15 @@ void LatexGenerator::endIndexSection(IndexSections is)
case isPageDocumentation2:
break;
case isEndIndex:
- t << "\\printindex\n";
- t << "\\end{document}\n";
+ if (latexFooter.isEmpty())
+ {
+ writeDefaultFooter(t);
+ }
+ else
+ {
+ QCString footer = fileToString(latexFooter);
+ t << substituteKeywords(footer,0);
+ }
break;
}
}