diff Doc/texinputs/python.sty @ 8076:de029e6f9838 legacy-trunk

Shift (re-)definition of \theindex to the document classes so that it doesn't break HOWTO documents.
author Fred Drake <fdrake@acm.org>
date Fri, 17 Apr 1998 02:45:41 +0000
parents e39145a13096
children 25c2aea64501
line wrap: on
line diff
--- a/Doc/texinputs/python.sty	Fri Apr 17 02:17:00 1998 +0000
+++ b/Doc/texinputs/python.sty	Fri Apr 17 02:45:41 1998 +0000
@@ -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