summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-02-13 14:34:04 (GMT)
committerFred Drake <fdrake@acm.org>1998-02-13 14:34:04 (GMT)
commitaebc6f399e21617ba72538aba259ee427c59b692 (patch)
treeadeec2f309a998f633fe8eda688aeb997e1034f9 /Doc
parent00dcfb2bc31a105abe8332d8310efdee29a489f7 (diff)
downloadcpython-aebc6f399e21617ba72538aba259ee427c59b692.zip
cpython-aebc6f399e21617ba72538aba259ee427c59b692.tar.gz
cpython-aebc6f399e21617ba72538aba259ee427c59b692.tar.bz2
Two new environments: datadescni and funcdescni. These are similar to
datadesc and funcdesc, but don't add entries to the index.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/myformat.sty20
1 files changed, 17 insertions, 3 deletions
diff --git a/Doc/myformat.sty b/Doc/myformat.sty
index 745ac47..8250ce4 100644
--- a/Doc/myformat.sty
+++ b/Doc/myformat.sty
@@ -200,11 +200,15 @@
\let\endctypedesc\endfulllineitems
% funcdesc should be called as an \begin{funcdesc} ... \end{funcdesc}
-\newcommand{\funcline}[2]{\item[\code{\bfcode{#1}(\varvars{#2})}]\ttindex{#1}}
+\newcommand{\funcline}[2]{\funclineni{#1}{#2}\ttindex{#1}}
\newcommand{\funcdesc}[2]{\fulllineitems\funcline{#1}{#2}}
\let\endfuncdesc\endfulllineitems
\newcommand{\optional}[1]{{\textnormal{\Large[}}{#1}\hspace{0.5mm}{\textnormal{\Large]}}}
+% similar to {funcdesc}, but doesn't add to the index
+\newcommand{\funclineni}[2]{\item[\code{\bfcode{#1}(\varvars{#2})}]}
+\newcommand{\funcdescni}[2]{\fulllineitems\funclineni{#1}{#2}}
+\let\endfuncdescni\endfulllineitems
% same for excdesc
\newcommand{\excline}[1]{\item[\bfcode{#1}]\ttindex{#1}}
@@ -212,10 +216,15 @@
\let\endexcdesc\endfulllineitems
% same for datadesc
-\newcommand{\dataline}[1]{\item[\bfcode{#1}]\ttindex{#1}}
+\newcommand{\dataline}[1]{\datalineni{#1}\ttindex{#1}}
\newcommand{\datadesc}[1]{\fulllineitems\dataline{#1}}
\let\enddatadesc\endfulllineitems
+% similar to {datadesc}, but doesn't add to the index
+\newcommand{\datalineni}[1]{\item[\bfcode{#1}]}
+\newcommand{\datadescni}[1]{\fulllineitems\datalineni{#1}}
+\let\enddatadescni\endfulllineitems
+
% opcodedesc should be called as an \begin{opcodedesc} ... \end{opcodedesc}
\newcommand{\opcodeline}[2]{\item[\bfcode{#1}\quad\var{#2}]}
@@ -303,7 +312,12 @@
% \end{seealso}
\newenvironment{seealso}[0]{\strong{See Also:}\par}{\par}
-\newcommand{\seemodule}[2]{\ref{module-#1}: \module{#1}\quad(#2)}
+\newcommand{\seemodule}[2]{\ref{module-#1}:%
+ \quad Module \module{#1}\quad(#2)}
+\newcommand{\seebimodule}[2]{\ref{module-#1}:%
+ \quad Built-in Module \module{#1}\quad(#2)}
+\newcommand{\seestmodule}[2]{\ref{module-#1}:%
+ \quad Standard Module \module{#1}\quad(#2)}
\newcommand{\seetext}[1]{\par{#1}}
% Fix the theindex environment to add an entry to the Table of