summaryrefslogtreecommitdiffstats
path: root/Doc/templates/module.tex
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2000-07-06 13:43:37 (GMT)
committerSkip Montanaro <skip@pobox.com>2000-07-06 13:43:37 (GMT)
commit8968a8292f5be0d19eefc5d814ee45e77ddb5eb6 (patch)
treeb676c5b4a0f34041052f01f61bcea691ea4a7351 /Doc/templates/module.tex
parentd50338fbd9928527f6d53ade8974619591982b2e (diff)
downloadcpython-8968a8292f5be0d19eefc5d814ee45e77ddb5eb6.zip
cpython-8968a8292f5be0d19eefc5d814ee45e77ddb5eb6.tar.gz
cpython-8968a8292f5be0d19eefc5d814ee45e77ddb5eb6.tar.bz2
modified template to demonstrate subsection for examples.
Diffstat (limited to 'Doc/templates/module.tex')
-rw-r--r--Doc/templates/module.tex6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/templates/module.tex b/Doc/templates/module.tex
index 84871aa..107848f 100644
--- a/Doc/templates/module.tex
+++ b/Doc/templates/module.tex
@@ -129,7 +129,11 @@ failure.
% an example giving the flavor of the module may be given before the
% detailed list of functions.)
-Example:
+\subsection{Example}
+\nodename{Spam Example}
+
+The following example demonstrates how to open a can of spam using the
+\module{spam} module.
\begin{verbatim}
>>> import spam