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

View File

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