diff options
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r-- | src/latexgen.cpp | 25 |
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; } } |