]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Two new environments: datadescni and funcdescni. These are similar to
authorFred Drake <fdrake@acm.org>
Fri, 13 Feb 1998 14:34:04 +0000 (14:34 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 13 Feb 1998 14:34:04 +0000 (14:34 +0000)
datadesc and funcdesc, but don't add entries to the index.

Doc/myformat.sty

index 745ac4710d50480b89b25d1960d7f9b0da08ab40..8250ce4d807348bc706cca31c1bbdca115747e50 100644 (file)
 \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}}
 \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}]}
 %  \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