summaryrefslogtreecommitdiffstats
path: root/Doc/templates
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-08-10 19:42:37 (GMT)
committerFred Drake <fdrake@acm.org>1998-08-10 19:42:37 (GMT)
commit295da24eafd9c3bb9326d62a1a2e822059698b2b (patch)
tree4c2db5606fae7ebe7ad991295426a82c11c1d2f6 /Doc/templates
parent62e436955b51c47ee9a84077a448ae3d7b2a59ce (diff)
downloadcpython-295da24eafd9c3bb9326d62a1a2e822059698b2b.zip
cpython-295da24eafd9c3bb9326d62a1a2e822059698b2b.tar.gz
cpython-295da24eafd9c3bb9326d62a1a2e822059698b2b.tar.bz2
New section header style.
Fix up a few synopses.
Diffstat (limited to 'Doc/templates')
-rw-r--r--Doc/templates/module.tex34
1 files changed, 20 insertions, 14 deletions
diff --git a/Doc/templates/module.tex b/Doc/templates/module.tex
index e82bb21..cff05d1 100644
--- a/Doc/templates/module.tex
+++ b/Doc/templates/module.tex
@@ -3,26 +3,32 @@
% ==== 1. ====
-% Choose one of the following section headers and index entries;
-% \section generates the section header, \declmodule produces the
-% appropriate index entry for this module. Note that these should
-% only be used for the defining entry for the module. Other
-% references to the module should use \refbimodindex, \refstmodindex,
-% \refexmodindex or \refmodindex, as appropriate.
+% The section prologue. Give the section a title and provide some
+% meta-information. References to the module should use
+% \refbimodindex, \refstmodindex, \refexmodindex or \refmodindex, as
+% appropriate.
-\section{Built-in Module \module{spam}} % If implemented in C, in
-\declaremodule{builtin}{spam} % standard library
+\section{\module{spam} ---
+ Short one-line descrition, for section title.}
-\section{Standard Module \module{spam}} % If implemented in Python, in
-\declaremodule{standard}{spam} % standard library
+% Choose one of these to specify the module module name. If there's
+% an underscore in the name, use
+% \declaremodule[modname]{...}{mod_name} instead.
+%
+\declaremodule{builtin}{spam} % standard library, in C
+\declaremodule{standard}{spam} % standard library, in Python
+\declaremodule{extension}{spam} % not standard, in C
+\declaremodule{}{spam} % not standard, in Python
-\section{Extension Module \module{spam}}% If implemented in C, but not
-\declaremodule{extension}{spam} % in standard library
+% These apply to all modules:
-\section{Module \module{spam}} % If implemented in Python, but not
-\declaremodule{}{spam} % in standard library
+\moduleauthor{name}{email} % Author of the module code;
+ % omit if not known.
+\sectionauthor{name}{email} % Author of the documentation.
+% Leave at least one blank line after this, to simplify ad-hoc tools
+% that are sometimes used to massage these files.
\modulesynopsis{This is a one-line descrition, for the chapter header.}