Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aa54e2d

Browse files
committed
Move the change to ending the abstract from python.sty to manual.cls; it
is not appropriate for the howto document class.
1 parent e61d7af commit aa54e2d

4 files changed

Lines changed: 28 additions & 30 deletions

File tree

Doc/manual.cls

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,20 @@
7575
}
7676

7777

78+
% Catch the end of the {abstract} environment, but here make sure the
79+
% abstract is followed by a blank page if the 'openright' option is used.
80+
%
81+
\let\OldEndAbstract=\endabstract
82+
\renewcommand{\endabstract}{
83+
\if@openright
84+
\ifodd\value{page}
85+
\typeout{Adding blank page after the abstract.}
86+
\vfil\pagebreak
87+
\fi
88+
\fi
89+
\OldEndAbstract
90+
}
91+
7892
% This wraps the \tableofcontents macro with all the magic to get the
7993
% spacing right and have the right number of pages if the 'openright'
8094
% option has been used. This eliminates a fair amount of crud in the

Doc/python.sty

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -515,21 +515,6 @@
515515
\addcontentsline{toc}{chapter}{\indexname}
516516
}
517517

518-
% Use a similar trick to catch the end of the {abstract} environment,
519-
% but here make sure the abstract is followed by a blank page if the
520-
% 'openright' option is used.
521-
%
522-
\let\OldEndAbstract=\endabstract
523-
\renewcommand{\endabstract}{
524-
\if@openright
525-
\ifodd\value{page}
526-
\typeout{Adding blank page after the abstract.}
527-
\vfil\pagebreak
528-
\fi
529-
\fi
530-
\OldEndAbstract
531-
}
532-
533518
% Allow the release number to be specified independently of the
534519
% \date{}. This allows the date to reflect the document's date and
535520
% release to specify the Python release that is documented.

Doc/texinputs/manual.cls

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,20 @@
7575
}
7676

7777

78+
% Catch the end of the {abstract} environment, but here make sure the
79+
% abstract is followed by a blank page if the 'openright' option is used.
80+
%
81+
\let\OldEndAbstract=\endabstract
82+
\renewcommand{\endabstract}{
83+
\if@openright
84+
\ifodd\value{page}
85+
\typeout{Adding blank page after the abstract.}
86+
\vfil\pagebreak
87+
\fi
88+
\fi
89+
\OldEndAbstract
90+
}
91+
7892
% This wraps the \tableofcontents macro with all the magic to get the
7993
% spacing right and have the right number of pages if the 'openright'
8094
% option has been used. This eliminates a fair amount of crud in the

Doc/texinputs/python.sty

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -515,21 +515,6 @@
515515
\addcontentsline{toc}{chapter}{\indexname}
516516
}
517517

518-
% Use a similar trick to catch the end of the {abstract} environment,
519-
% but here make sure the abstract is followed by a blank page if the
520-
% 'openright' option is used.
521-
%
522-
\let\OldEndAbstract=\endabstract
523-
\renewcommand{\endabstract}{
524-
\if@openright
525-
\ifodd\value{page}
526-
\typeout{Adding blank page after the abstract.}
527-
\vfil\pagebreak
528-
\fi
529-
\fi
530-
\OldEndAbstract
531-
}
532-
533518
% Allow the release number to be specified independently of the
534519
% \date{}. This allows the date to reflect the document's date and
535520
% release to specify the Python release that is documented.

0 commit comments

Comments
 (0)