Commit 790000b9 authored by albert-github's avatar albert-github

Bug 172072 - $title doesn't work in LateX header

In case $title is used in the latex header or footer it is now replaced with the empty string (it was left inside, resulting in non translatable LaTeX code), the documentation has been updated too.

See also:
Bug 668004 - LATEX_HEADER should share common information with HTML_HEADER
Bug 401327 - LATEX_HEADER: $title does not get expanded
parent 6dae7242
...@@ -2506,11 +2506,10 @@ EXTRA_PACKAGES=times ...@@ -2506,11 +2506,10 @@ EXTRA_PACKAGES=times
The following commands have a special meaning inside the header: The following commands have a special meaning inside the header:
<code>\$title</code>, <code>\$datetime</code>, <code>\$date</code>, <code>\$title</code>, <code>\$datetime</code>, <code>\$date</code>,
<code>\$doxygenversion</code>, <code>\$projectname</code>, <code>\$doxygenversion</code>, <code>\$projectname</code>,
<code>\$projectnumber</code>. <code>\$projectnumber</code>, <code>\$projectbrief</code>,
Doxygen will replace them by respectively <code>\$projectlogo</code>.
the title of the page, the current date and time, only the current date, Doxygen will replace <code>\$title</code> with the empy string, for the replacement values of the
the version number of doxygen, the project name (see \ref cfg_project_name "PROJECT_NAME"), or the other commands the user is refered to \ref cfg_html_header "HTML_HEADER".
project number (see \ref cfg_project_number "PROJECT_NUMBER").
]]> ]]>
</docs> </docs>
</option> </option>
...@@ -2521,6 +2520,9 @@ EXTRA_PACKAGES=times ...@@ -2521,6 +2520,9 @@ EXTRA_PACKAGES=times
the generated \f$\mbox{\LaTeX}\f$ document. The footer should contain everything after the generated \f$\mbox{\LaTeX}\f$ document. The footer should contain everything after
the last chapter. If it is left blank doxygen will generate a the last chapter. If it is left blank doxygen will generate a
standard footer. standard footer.
See \ref cfg_latex_header "LATEX_HEADER" for more information on
how to generate a default footer and what special commands can be
used inside the footer.
<br>Note: Only use a user-defined footer if you know what you are doing! <br>Note: Only use a user-defined footer if you know what you are doing!
]]> ]]>
......
...@@ -623,7 +623,7 @@ void LatexGenerator::startIndexSection(IndexSections is) ...@@ -623,7 +623,7 @@ void LatexGenerator::startIndexSection(IndexSections is)
else else
{ {
QCString header = fileToString(latexHeader); QCString header = fileToString(latexHeader);
t << substituteKeywords(header,0, t << substituteKeywords(header,"",
convertToLaTeX(Config_getString("PROJECT_NAME")), convertToLaTeX(Config_getString("PROJECT_NAME")),
convertToLaTeX(Config_getString("PROJECT_NUMBER")), convertToLaTeX(Config_getString("PROJECT_NUMBER")),
convertToLaTeX(Config_getString("PROJECT_BRIEF"))); convertToLaTeX(Config_getString("PROJECT_BRIEF")));
...@@ -1021,7 +1021,7 @@ void LatexGenerator::endIndexSection(IndexSections is) ...@@ -1021,7 +1021,7 @@ void LatexGenerator::endIndexSection(IndexSections is)
else else
{ {
QCString footer = fileToString(latexFooter); QCString footer = fileToString(latexFooter);
t << substituteKeywords(footer,0, t << substituteKeywords(footer,"",
convertToLaTeX(Config_getString("PROJECT_NAME")), convertToLaTeX(Config_getString("PROJECT_NAME")),
convertToLaTeX(Config_getString("PROJECT_NUMBER")), convertToLaTeX(Config_getString("PROJECT_NUMBER")),
convertToLaTeX(Config_getString("PROJECT_BRIEF"))); convertToLaTeX(Config_getString("PROJECT_BRIEF")));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment