[Python-checkins] r66477 - in doctools/trunk: doc/config.rst sphinx/latexwriter.py
georg.brandl
python-checkins at python.org
Tue Sep 16 09:00:20 CEST 2008
Author: georg.brandl
Date: Tue Sep 16 09:00:19 2008
New Revision: 66477
Log:
Add footer element.
Modified:
doctools/trunk/doc/config.rst
doctools/trunk/sphinx/latexwriter.py
Modified: doctools/trunk/doc/config.rst
==============================================================================
--- doctools/trunk/doc/config.rst (original)
+++ doctools/trunk/doc/config.rst Tue Sep 16 09:00:19 2008
@@ -501,20 +501,27 @@
"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 @@
``'makemodindex'``
``'shorthandoff'``
``'printmodindex'``
- ``'printindex'``
.. confval:: latex_preamble
Modified: doctools/trunk/sphinx/latexwriter.py
==============================================================================
--- doctools/trunk/sphinx/latexwriter.py (original)
+++ doctools/trunk/sphinx/latexwriter.py Tue Sep 16 09:00:19 2008
@@ -53,6 +53,7 @@
'''
FOOTER = r'''
+%(footer)s
\renewcommand{\indexname}{%(modindexname)s}
%(printmodindex)s
\renewcommand{\indexname}{%(indexname)s}
@@ -138,6 +139,7 @@
'shorthandoff': '',
'maketitle': '\\maketitle',
'tableofcontents': '\\tableofcontents',
+ 'footer': '',
'printmodindex': '\\printmodindex',
'printindex': '\\printindex',
}
More information about the Python-checkins
mailing list