From 1cc6d53f6512c0aadda7458dfc27b6382e81ac8e Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 23 Jul 1998 17:36:14 +0000 Subject: \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. --- Doc/texinputs/manual.cls | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Doc/texinputs/manual.cls b/Doc/texinputs/manual.cls index 786002d..fe7e3ef 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. -- cgit v0.12