File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments