summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libtemplate.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/lib/libtemplate.tex')
-rw-r--r--Doc/lib/libtemplate.tex8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/lib/libtemplate.tex b/Doc/lib/libtemplate.tex
index 29aeb63..4375649 100644
--- a/Doc/lib/libtemplate.tex
+++ b/Doc/lib/libtemplate.tex
@@ -45,7 +45,7 @@ The \code{spam} module defines the following functions:
% Redefine the ``indexsubitem'' macro to point to this module
% (alternatively, you can put this at the top of the file):
-\renewcommand{\indexsubitem}{(in module spam)}
+\setindexsubitem{(in module spam)}
% ---- 3.2. ----
% For each function, use a ``funcdesc'' block. This has exactly two
@@ -101,12 +101,12 @@ failure.
Example:
-\bcode\begin{verbatim}
+\begin{verbatim}
>>> import spam
>>> can = spam.open('/etc/passwd')
>>> can.empty()
>>> can.close()
-\end{verbatim}\ecode
+\end{verbatim}
%
% ==== 5. ====
% If your module defines new object types (for a built-in module) or
@@ -120,7 +120,7 @@ Example:
Spam objects (returned by \code{open()} above) have the following
methods.
-\renewcommand{\indexsubitem}{(spam method)}
+\setindexsubitem{(spam method)}
\begin{funcdesc}{empty}{}
Empty the can into the trash.