Kaydet (Commit) d579ed82 authored tarafından Fred Drake's avatar Fred Drake

Shift (re-)definition of \theindex to the document classes so that it doesn't

break HOWTO documents.
üst 300775d2
...@@ -82,6 +82,17 @@ ...@@ -82,6 +82,17 @@
\@doing@page@targetstrue \@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}{ \@ifundefined{fancyhf}{
\pagestyle{plain}}{ \pagestyle{plain}}{
\pagestyle{normal}} % start this way; change for \pagestyle{normal}} % start this way; change for
......
...@@ -122,3 +122,15 @@ ...@@ -122,3 +122,15 @@
\@ifundefined{fancyhf}{}{\pagestyle{normal}}% \@ifundefined{fancyhf}{}{\pagestyle{normal}}%
\@doing@page@targetstrue% \@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}
}
...@@ -286,17 +286,6 @@ ...@@ -286,17 +286,6 @@
\newif\if@UseModuleIndex \newif\if@UseModuleIndex
\@UseModuleIndexfalse \@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}{ \newcommand{\makemodindex}{
\newwrite\modindexfile \newwrite\modindexfile
\openout\modindexfile=mod\jobname.idx \openout\modindexfile=mod\jobname.idx
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment