File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8282 \@doing@page@targetstrue
8383}
8484
85+ % Fix the theindex environment to add an entry to the Table of
86+ % Contents; this is much nicer than just having to jump to the end of
87+ % the book and flip around, especially with multiple indexes.
88+ %
89+ \let\OldTheindex =\theindex
90+ \renewcommand {\theindex }{
91+ \clearpage
92+ \OldTheindex
93+ \addcontentsline {toc}{section}{\indexname }
94+ }
95+
8596\@ifundefined {fancyhf}{
8697 \pagestyle {plain}}{
8798 \pagestyle {normal}} % start this way; change for
Original file line number Diff line number Diff line change 122122 \@ifundefined {fancyhf}{}{\pagestyle {normal}}%
123123 \@doing@page@targetstrue %
124124}
125+
126+
127+ % Fix the theindex environment to add an entry to the Table of
128+ % Contents; this is much nicer than just having to jump to the end of
129+ % the book and flip around, especially with multiple indexes.
130+ %
131+ \let\OldTheindex =\theindex
132+ \renewcommand {\theindex }{
133+ \cleardoublepage
134+ \OldTheindex
135+ \addcontentsline {toc}{chapter}{\indexname }
136+ }
Original file line number Diff line number Diff line change 286286\newif \if @UseModuleIndex
287287\@UseModuleIndexfalse
288288
289- % Fix the theindex environment to add an entry to the Table of
290- % Contents; this is much nicer than just having to jump to the end of
291- % the book and flip around, especially with multiple indexes.
292- %
293- \let\OldTheindex =\theindex
294- \renewcommand {\theindex }{
295- \cleardoublepage
296- \OldTheindex
297- \addcontentsline {toc}{chapter}{\indexname }
298- }
299-
300289\newcommand {\makemodindex }{
301290 \newwrite\modindexfile
302291 \openout\modindexfile =mod\jobname .idx
You can’t perform that action at this time.
0 commit comments