mirror of https://github.com/python/cpython
\py@ModSynopsisFilename: New macro; gives names of the "current" .syn file.
\chapter: Extended, ensures that a pending module synopsis is written out and then closes the .syn file for the preceeding chapter.
This commit is contained in:
parent
c31cc38106
commit
1cc6d53f65
|
@ -44,6 +44,15 @@
|
|||
%
|
||||
\RequirePackage{python}
|
||||
|
||||
% support for module synopsis sections:
|
||||
\newcommand{\py@ModSynopsisFilename}{\jobname\thechapter.syn}
|
||||
\let\py@OldChapter=\chapter
|
||||
\renewcommand{\chapter}{
|
||||
\py@ProcessModSynopsis
|
||||
\py@closeModSynopsisFile
|
||||
\py@OldChapter
|
||||
}
|
||||
|
||||
|
||||
% Change the title page to look a bit better, and fit in with the
|
||||
% fncychap ``Bjarne'' style a bit better.
|
||||
|
|
Loading…
Reference in New Issue