]> granicus.if.org Git - python/commitdiff
Shift (re-)definition of \theindex to the document classes so that it doesn't
authorFred Drake <fdrake@acm.org>
Fri, 17 Apr 1998 02:45:41 +0000 (02:45 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 17 Apr 1998 02:45:41 +0000 (02:45 +0000)
break HOWTO documents.

Doc/texinputs/howto.cls
Doc/texinputs/manual.cls
Doc/texinputs/python.sty

index 901cf8700f1cf399c8525fce251f545944276d51..f2c1ecd9d20ab068017bf0221afe180875d426a1 100644 (file)
   \@doing@page@targetstrue
 }  
 
+% 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}{
+  \clearpage
+  \OldTheindex
+  \addcontentsline{toc}{section}{\indexname}
+}
+
 \@ifundefined{fancyhf}{
   \pagestyle{plain}}{
   \pagestyle{normal}}          % start this way; change for
index c7ab75ed16e39ca4dc2b489cdac363428a3ddf77..d48923e90c4abe03cecc34a0e02e59d1ed380cb5 100644 (file)
   \@ifundefined{fancyhf}{}{\pagestyle{normal}}%
   \@doing@page@targetstrue%
 }
+
+
+% 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}
+}
index 831143f6322f7f9066343807a09eb46db087f16d..d98c4b1ef93a39261ac58a07face90e1f9585b11 100644 (file)
 \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