Add footer element.

This commit is contained in:
Georg Brandl 2008-09-16 07:00:19 +00:00
parent afa63e57d8
commit a4cb2e9e7a
2 changed files with 13 additions and 5 deletions

View File

@ -501,20 +501,27 @@ These options influence LaTeX output.
"Rejne". You can also set this to ``''`` to disable fncychap.
``'preamble'``
Additional preamble content, default empty.
``'footer'```
Additional footer content (before the indices), default empty.
* Keys that don't need be overridden unless in special cases are:
``'inputenc'``
"inputenc" package inclusion, default ``'\\usepackage[utf8]{inputenc}'``.
"inputenc" package inclusion, default
``'\\usepackage[utf8]{inputenc}'``.
``'fontenc'``
"fontenc" package inclusion, default ``'\\usepackage[T1]{fontenc}'``.
``'maketitle'``
"maketitle" call, default ``'\\maketitle'``. Override if you want to
generate a differently-styled title page.
``'tableofcontents'``
"tableofcontents" call, default ``'\\tableofcontents'``. Override if you
want to generate a different table of contents or put content between the
title page and the TOC.
"tableofcontents" call, default ``'\\tableofcontents'``. Override if
you want to generate a different table of contents or put content
between the title page and the TOC.
``'printindex'``
"printindex" call, the last thing in the file, default
``'\\printindex'``. Override if you want to generate the index
differently or append some content after the index.
* Keys that are set by other options and therefore should not be overridden are:
@ -530,7 +537,6 @@ These options influence LaTeX output.
``'makemodindex'``
``'shorthandoff'``
``'printmodindex'``
``'printindex'``
.. confval:: latex_preamble

View File

@ -53,6 +53,7 @@ BEGIN_DOC = r'''
'''
FOOTER = r'''
%(footer)s
\renewcommand{\indexname}{%(modindexname)s}
%(printmodindex)s
\renewcommand{\indexname}{%(indexname)s}
@ -138,6 +139,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
'shorthandoff': '',
'maketitle': '\\maketitle',
'tableofcontents': '\\tableofcontents',
'footer': '',
'printmodindex': '\\printmodindex',
'printindex': '\\printindex',
}