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/sphinx.sty | |
| 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/sphinx.sty')
| -rw-r--r-- | sphinx/texinputs/sphinx.sty | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty index ce15591a..9b083cc6 100644 --- a/sphinx/texinputs/sphinx.sty +++ b/sphinx/texinputs/sphinx.sty @@ -102,8 +102,7 @@ \sloppy \hbadness = 5000 % don't print trivial gripes -\pagestyle{empty} % start this way; change for -\pagenumbering{roman} % ToC & chapters +\pagestyle{empty} % start this way % Use this to set the font family for headers and other decor: \newcommand{\py@HeaderFamily}{\sffamily\bfseries} @@ -413,27 +412,6 @@ \fi% } - -% Fix the index environment to add an entry to the Table of -% Contents; this is much nicer than just having to jump to the end of the book -% and flip around, especially with multiple indexes. -% The memoir class already does this, so we don't duplicate it in that case. -% -% A similiar fix must be done to the bibliography environment, although -% dependant on document class. In particular, the '\addcontentsline' command -% should use 'chapter' for a report and 'section' for an article. -% See sphinxmanual.cls and sphinxhowto.cls for specific fixes. -% -\@ifclassloaded{memoir}{}{ - \let\py@OldTheindex=\theindex - \renewcommand{\theindex}{ - \cleardoublepage - \phantomsection - \py@OldTheindex - \addcontentsline{toc}{chapter}{\indexname} - } -} - % to make pdf with correct encoded bookmarks in Japanese % this should precede the hyperref package \ifx\kanjiskip\undefined\else |
