Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d579ed82
Commit
d579ed82
authored
Apr 17, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shift (re-)definition of \theindex to the document classes so that it doesn't
break HOWTO documents.
parent
300775d2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
11 deletions
+23
-11
Doc/texinputs/howto.cls
Doc/texinputs/howto.cls
+11
-0
Doc/texinputs/manual.cls
Doc/texinputs/manual.cls
+12
-0
Doc/texinputs/python.sty
Doc/texinputs/python.sty
+0
-11
No files found.
Doc/texinputs/howto.cls
View file @
d579ed82
...
...
@@ -82,6 +82,17 @@
\@
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
...
...
Doc/texinputs/manual.cls
View file @
d579ed82
...
...
@@ -122,3 +122,15 @@
\@
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
}
}
Doc/texinputs/python.sty
View file @
d579ed82
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment