summaryrefslogtreecommitdiffstats
path: root/src/latexgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-10-31 17:29:54 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-10-31 17:29:54 (GMT)
commit9ef2dc156c37da7fb736c39c3c3fa5074e4d1829 (patch)
treeb6a94a5f247b1c45cf61faf3636064827c261a4c /src/latexgen.cpp
parentaf5c5b37c5464afb6a2df71edf6f9e82ece75187 (diff)
downloadDoxygen-9ef2dc156c37da7fb736c39c3c3fa5074e4d1829.zip
Doxygen-9ef2dc156c37da7fb736c39c3c3fa5074e4d1829.tar.gz
Doxygen-9ef2dc156c37da7fb736c39c3c3fa5074e4d1829.tar.bz2
Bug 744938 - PATCH: add option to build latex without timestamps
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r--src/latexgen.cpp24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index 681b575..d8a3220 100644
--- a/src/latexgen.cpp
+++ b/src/latexgen.cpp
@@ -571,11 +571,18 @@ static void writeDefaultHeaderPart1(FTextStream &t)
// Headers & footers
QGString genString;
+ QCString generatedBy;
+ static bool timeStamp = Config_getBool("LATEX_TIMESTAMP");
FTextStream tg(&genString);
- filterLatexString(tg,
- theTranslator->trGeneratedAt(dateToString(TRUE),
- Config_getString("PROJECT_NAME")),
- FALSE,FALSE,FALSE);
+ if (timeStamp)
+ {
+ generatedBy = theTranslator->trGeneratedAt(dateToString(TRUE), Config_getString("PROJECT_NAME"));
+ }
+ else
+ {
+ generatedBy = theTranslator->trGeneratedBy();
+ }
+ filterLatexString(tg, generatedBy, FALSE,FALSE,FALSE);
t << "% Headers & footers\n"
"\\usepackage{fancyhdr}\n"
"\\pagestyle{fancyplain}\n"
@@ -700,10 +707,11 @@ static void writeDefaultHeaderPart3(FTextStream &t)
{
// part 3
// Finalize project number
- t << " Doxygen " << versionString << "}\\\\\n"
- "\\vspace*{0.5cm}\n"
- "{\\small " << dateToString(TRUE) << "}\\\\\n"
- "\\end{center}\n"
+ t << " Doxygen " << versionString << "}\\\\\n";
+ if (Config_getBool("LATEX_TIMESTAMP"))
+ t << "\\vspace*{0.5cm}\n"
+ "{\\small " << dateToString(TRUE) << "}\\\\\n";
+ t << "\\end{center}\n"
"\\end{titlepage}\n";
bool compactLatex = Config_getBool("COMPACT_LATEX");
if (!compactLatex)