diff options
| author | Georg Brandl <georg@python.org> | 2013-03-30 14:00:43 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2013-03-30 14:00:43 +0100 |
| commit | 45757f48cc2459c62e76b3eee83416e1f41ae7c4 (patch) | |
| tree | 2ed1c087af3cb017c35bb573caf924d823785c43 /sphinx/texinputs/sphinxmanual.cls | |
| parent | 6389f92ddc76e7155fcabd0ac5a6886ece0246aa (diff) | |
| download | sphinx-45757f48cc2459c62e76b3eee83416e1f41ae7c4.tar.gz | |
Closes #995: Fix table-of-contents and page numbering for the LaTeX "howto" class.
Diffstat (limited to 'sphinx/texinputs/sphinxmanual.cls')
| -rw-r--r-- | sphinx/texinputs/sphinxmanual.cls | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sphinx/texinputs/sphinxmanual.cls b/sphinx/texinputs/sphinxmanual.cls index a04cea5b..26df488e 100644 --- a/sphinx/texinputs/sphinxmanual.cls +++ b/sphinx/texinputs/sphinxmanual.cls @@ -114,6 +114,7 @@ \pagenumbering{arabic}% \@ifundefined{fancyhf}{}{\pagestyle{normal}}% } +\pagenumbering{roman} % This is needed to get the width of the section # area wide enough in the % library reference. Doing it here keeps it the same for all the manuals. @@ -131,3 +132,16 @@ \py@OldThebibliography{1} \addcontentsline{toc}{chapter}{\bibname} } + +% Same for the indices. +% The memoir class already does this, so we don't duplicate it in that case. +% +\@ifclassloaded{memoir}{}{ + \let\py@OldTheindex=\theindex + \renewcommand{\theindex}{ + \cleardoublepage + \phantomsection + \py@OldTheindex + \addcontentsline{toc}{chapter}{\indexname} + } +} |
