summaryrefslogtreecommitdiffstats
path: root/Doc/texinputs
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-07-23 17:36:14 (GMT)
committerFred Drake <fdrake@acm.org>1998-07-23 17:36:14 (GMT)
commit1cc6d53f6512c0aadda7458dfc27b6382e81ac8e (patch)
tree5d811930dcc8be9882582b76cfed1f8bc855c72b /Doc/texinputs
parentc31cc38106266484a819af41cbd35d1b81aad0bb (diff)
downloadcpython-1cc6d53f6512c0aadda7458dfc27b6382e81ac8e.zip
cpython-1cc6d53f6512c0aadda7458dfc27b6382e81ac8e.tar.gz
cpython-1cc6d53f6512c0aadda7458dfc27b6382e81ac8e.tar.bz2
\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.
Diffstat (limited to 'Doc/texinputs')
-rw-r--r--Doc/texinputs/manual.cls9
1 files changed, 9 insertions, 0 deletions
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.