|
Than Ngo |
5e50ad |
diff --git a/src/config.xml b/src/config.xml
|
|
Than Ngo |
5e50ad |
index acbee8e..faad651 100644
|
|
Than Ngo |
5e50ad |
--- a/src/config.xml
|
|
Than Ngo |
5e50ad |
+++ b/src/config.xml
|
|
Than Ngo |
5e50ad |
@@ -2647,6 +2647,16 @@ or
|
|
Than Ngo |
5e50ad |
]]>
|
|
Than Ngo |
5e50ad |
</docs>
|
|
Than Ngo |
5e50ad |
</option>
|
|
Than Ngo |
5e50ad |
+ <option type='bool' id='LATEX_TIMESTAMP' defval='0' depends='GENERATE_LATEX'>
|
|
Than Ngo |
5e50ad |
+ <docs>
|
|
Than Ngo |
5e50ad |
+
|
|
Than Ngo |
5e50ad |
+ If the \c LATEX_TIMESTAMP tag is set to \c YES then the footer of
|
|
Than Ngo |
5e50ad |
+ each generated page will contain the date and time when the page
|
|
Than Ngo |
5e50ad |
+ was generated. Setting this to \c NO can help when comparing the output of
|
|
Than Ngo |
5e50ad |
+ multiple runs.
|
|
Than Ngo |
5e50ad |
+]]>
|
|
Than Ngo |
5e50ad |
+ </docs>
|
|
Than Ngo |
5e50ad |
+ </option>
|
|
Than Ngo |
5e50ad |
</group>
|
|
Than Ngo |
5e50ad |
<group name='RTF' docs='Configuration options related to the RTF output'>
|
|
Than Ngo |
5e50ad |
<option type='bool' id='GENERATE_RTF' defval='0'>
|
|
Than Ngo |
5e50ad |
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
|
|
Than Ngo |
5e50ad |
index 681b575..d8a3220 100644
|
|
Than Ngo |
5e50ad |
--- a/src/latexgen.cpp
|
|
Than Ngo |
5e50ad |
+++ b/src/latexgen.cpp
|
|
Than Ngo |
5e50ad |
@@ -571,11 +571,18 @@ static void writeDefaultHeaderPart1(FTextStream &t)
|
|
Than Ngo |
5e50ad |
|
|
Than Ngo |
5e50ad |
// Headers & footers
|
|
Than Ngo |
5e50ad |
QGString genString;
|
|
Than Ngo |
5e50ad |
+ QCString generatedBy;
|
|
Than Ngo |
5e50ad |
+ static bool timeStamp = Config_getBool("LATEX_TIMESTAMP");
|
|
Than Ngo |
5e50ad |
FTextStream tg(&genString);
|
|
Than Ngo |
5e50ad |
- filterLatexString(tg,
|
|
Than Ngo |
5e50ad |
- theTranslator->trGeneratedAt(dateToString(TRUE),
|
|
Than Ngo |
5e50ad |
- Config_getString("PROJECT_NAME")),
|
|
Than Ngo |
5e50ad |
- FALSE,FALSE,FALSE);
|
|
Than Ngo |
5e50ad |
+ if (timeStamp)
|
|
Than Ngo |
5e50ad |
+ {
|
|
Than Ngo |
5e50ad |
+ generatedBy = theTranslator->trGeneratedAt(dateToString(TRUE), Config_getString("PROJECT_NAME"));
|
|
Than Ngo |
5e50ad |
+ }
|
|
Than Ngo |
5e50ad |
+ else
|
|
Than Ngo |
5e50ad |
+ {
|
|
Than Ngo |
5e50ad |
+ generatedBy = theTranslator->trGeneratedBy();
|
|
Than Ngo |
5e50ad |
+ }
|
|
Than Ngo |
5e50ad |
+ filterLatexString(tg, generatedBy, FALSE,FALSE,FALSE);
|
|
Than Ngo |
5e50ad |
t << "% Headers & footers\n"
|
|
Than Ngo |
5e50ad |
"\\usepackage{fancyhdr}\n"
|
|
Than Ngo |
5e50ad |
"\\pagestyle{fancyplain}\n"
|
|
Than Ngo |
5e50ad |
@@ -700,10 +707,11 @@ static void writeDefaultHeaderPart3(FTextStream &t)
|
|
Than Ngo |
5e50ad |
{
|
|
Than Ngo |
5e50ad |
// part 3
|
|
Than Ngo |
5e50ad |
// Finalize project number
|
|
Than Ngo |
5e50ad |
- t << " Doxygen " << versionString << "}\\\\\n"
|
|
Than Ngo |
5e50ad |
- "\\vspace*{0.5cm}\n"
|
|
Than Ngo |
5e50ad |
- "{\\small " << dateToString(TRUE) << "}\\\\\n"
|
|
Than Ngo |
5e50ad |
- "\\end{center}\n"
|
|
Than Ngo |
5e50ad |
+ t << " Doxygen " << versionString << "}\\\\\n";
|
|
Than Ngo |
5e50ad |
+ if (Config_getBool("LATEX_TIMESTAMP"))
|
|
Than Ngo |
5e50ad |
+ t << "\\vspace*{0.5cm}\n"
|
|
Than Ngo |
5e50ad |
+ "{\\small " << dateToString(TRUE) << "}\\\\\n";
|
|
Than Ngo |
5e50ad |
+ t << "\\end{center}\n"
|
|
Than Ngo |
5e50ad |
"\\end{titlepage}\n";
|
|
Than Ngo |
5e50ad |
bool compactLatex = Config_getBool("COMPACT_LATEX");
|
|
Than Ngo |
5e50ad |
if (!compactLatex)
|