From: Fred Drake Date: Thu, 23 Jul 1998 17:36:14 +0000 (+0000) Subject: \py@ModSynopsisFilename: New macro; gives names of the "current" .syn file. X-Git-Tag: v1.5.2a1~262 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1cc6d53f6512c0aadda7458dfc27b6382e81ac8e;p=python \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. --- diff --git a/Doc/texinputs/manual.cls b/Doc/texinputs/manual.cls index 786002df10..fe7e3efb4f 100644 --- a/Doc/texinputs/manual.cls +++ b/Doc/texinputs/manual.cls @@ -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.