]> granicus.if.org Git - python/commitdiff
\py@ModSynopsisFilename: New macro; gives names of the "current" .syn file.
authorFred Drake <fdrake@acm.org>
Thu, 23 Jul 1998 17:36:14 +0000 (17:36 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 23 Jul 1998 17:36:14 +0000 (17:36 +0000)
\chapter:  Extended, ensures that a pending module synopsis is written out
and then closes the .syn file for the preceeding chapter.

Doc/texinputs/manual.cls

index 786002df1038e1c17555318c4fcb01ab1384b78a..fe7e3efb4fe8539b9eda0aa812897b622476d5b9 100644 (file)
 %
 \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.