mirror of https://github.com/python/cpython.git
Move the change to ending the abstract from python.sty to manual.cls; it
is not appropriate for the howto document class.
This commit is contained in:
parent
e61d7af4db
commit
aa54e2db84
|
@ -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
|
% This wraps the \tableofcontents macro with all the magic to get the
|
||||||
% spacing right and have the right number of pages if the 'openright'
|
% 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
|
% option has been used. This eliminates a fair amount of crud in the
|
||||||
|
|
|
@ -515,21 +515,6 @@
|
||||||
\addcontentsline{toc}{chapter}{\indexname}
|
\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
|
% Allow the release number to be specified independently of the
|
||||||
% \date{}. This allows the date to reflect the document's date and
|
% \date{}. This allows the date to reflect the document's date and
|
||||||
% release to specify the Python release that is documented.
|
% release to specify the Python release that is documented.
|
||||||
|
|
|
@ -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
|
% This wraps the \tableofcontents macro with all the magic to get the
|
||||||
% spacing right and have the right number of pages if the 'openright'
|
% 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
|
% option has been used. This eliminates a fair amount of crud in the
|
||||||
|
|
|
@ -515,21 +515,6 @@
|
||||||
\addcontentsline{toc}{chapter}{\indexname}
|
\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
|
% Allow the release number to be specified independently of the
|
||||||
% \date{}. This allows the date to reflect the document's date and
|
% \date{}. This allows the date to reflect the document's date and
|
||||||
% release to specify the Python release that is documented.
|
% release to specify the Python release that is documented.
|
||||||
|
|
Loading…
Reference in New Issue