summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-03-05 16:41:42 (GMT)
committerFred Drake <fdrake@acm.org>1998-03-05 16:41:42 (GMT)
commitaa54e2db84839a83bd98751c4ba78a69013e229f (patch)
tree0a3549b8a753985e98face414a08aa85c0c3d737 /Doc
parente61d7af4db4e3a42e6be065e39d8895f5d1234d1 (diff)
downloadcpython-aa54e2db84839a83bd98751c4ba78a69013e229f.zip
cpython-aa54e2db84839a83bd98751c4ba78a69013e229f.tar.gz
cpython-aa54e2db84839a83bd98751c4ba78a69013e229f.tar.bz2
Move the change to ending the abstract from python.sty to manual.cls; it
is not appropriate for the howto document class.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/manual.cls14
-rw-r--r--Doc/python.sty15
-rw-r--r--Doc/texinputs/manual.cls14
-rw-r--r--Doc/texinputs/python.sty15
4 files changed, 28 insertions, 30 deletions
diff --git a/Doc/manual.cls b/Doc/manual.cls
index 51d7baf..2e7f40e 100644
--- a/Doc/manual.cls
+++ b/Doc/manual.cls
@@ -75,6 +75,20 @@
}
+% Catch the end of the {abstract} environment, but here make sure the
+% abstract is followed by a blank page if the 'openright' option is used.
+%
+\let\OldEndAbstract=\endabstract
+\renewcommand{\endabstract}{
+ \if@openright
+ \ifodd\value{page}
+ \typeout{Adding blank page after the abstract.}
+ \vfil\pagebreak
+ \fi
+ \fi
+ \OldEndAbstract
+}
+
% This wraps the \tableofcontents macro with all the magic to get the
% spacing right and have the right number of pages if the 'openright'
% option has been used. This eliminates a fair amount of crud in the
diff --git a/Doc/python.sty b/Doc/python.sty
index 01d16c9..509fe6d 100644
--- a/Doc/python.sty
+++ b/Doc/python.sty
@@ -515,21 +515,6 @@
\addcontentsline{toc}{chapter}{\indexname}
}
-% Use a similar trick to catch the end of the {abstract} environment,
-% but here make sure the abstract is followed by a blank page if the
-% 'openright' option is used.
-%
-\let\OldEndAbstract=\endabstract
-\renewcommand{\endabstract}{
- \if@openright
- \ifodd\value{page}
- \typeout{Adding blank page after the abstract.}
- \vfil\pagebreak
- \fi
- \fi
- \OldEndAbstract
-}
-
% Allow the release number to be specified independently of the
% \date{}. This allows the date to reflect the document's date and
% release to specify the Python release that is documented.
diff --git a/Doc/texinputs/manual.cls b/Doc/texinputs/manual.cls
index 51d7baf..2e7f40e 100644
--- a/Doc/texinputs/manual.cls
+++ b/Doc/texinputs/manual.cls
@@ -75,6 +75,20 @@
}
+% Catch the end of the {abstract} environment, but here make sure the
+% abstract is followed by a blank page if the 'openright' option is used.
+%
+\let\OldEndAbstract=\endabstract
+\renewcommand{\endabstract}{
+ \if@openright
+ \ifodd\value{page}
+ \typeout{Adding blank page after the abstract.}
+ \vfil\pagebreak
+ \fi
+ \fi
+ \OldEndAbstract
+}
+
% This wraps the \tableofcontents macro with all the magic to get the
% spacing right and have the right number of pages if the 'openright'
% option has been used. This eliminates a fair amount of crud in the
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty
index 01d16c9..509fe6d 100644
--- a/Doc/texinputs/python.sty
+++ b/Doc/texinputs/python.sty
@@ -515,21 +515,6 @@
\addcontentsline{toc}{chapter}{\indexname}
}
-% Use a similar trick to catch the end of the {abstract} environment,
-% but here make sure the abstract is followed by a blank page if the
-% 'openright' option is used.
-%
-\let\OldEndAbstract=\endabstract
-\renewcommand{\endabstract}{
- \if@openright
- \ifodd\value{page}
- \typeout{Adding blank page after the abstract.}
- \vfil\pagebreak
- \fi
- \fi
- \OldEndAbstract
-}
-
% Allow the release number to be specified independently of the
% \date{}. This allows the date to reflect the document's date and
% release to specify the Python release that is documented.