mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Shift (re-)definition of \theindex to the document classes so that it doesn't
break HOWTO documents.
This commit is contained in:
parent
300775d222
commit
d579ed8239
3 changed files with 23 additions and 11 deletions
|
|
@ -286,17 +286,6 @@
|
|||
\newif\if@UseModuleIndex
|
||||
\@UseModuleIndexfalse
|
||||
|
||||
% Fix the theindex 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.
|
||||
%
|
||||
\let\OldTheindex=\theindex
|
||||
\renewcommand{\theindex}{
|
||||
\cleardoublepage
|
||||
\OldTheindex
|
||||
\addcontentsline{toc}{chapter}{\indexname}
|
||||
}
|
||||
|
||||
\newcommand{\makemodindex}{
|
||||
\newwrite\modindexfile
|
||||
\openout\modindexfile=mod\jobname.idx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue