\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:
Fred Drake 1998-07-23 17:36:14 +00:00
parent c31cc38106
commit 1cc6d53f65
1 changed files with 9 additions and 0 deletions

View File

@ -44,6 +44,15 @@
% %
\RequirePackage{python} \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 % Change the title page to look a bit better, and fit in with the
% fncychap ``Bjarne'' style a bit better. % fncychap ``Bjarne'' style a bit better.