]> granicus.if.org Git - python/commitdiff
Added cvardesc and ctypedesc macros, for api.tex.
authorGuido van Rossum <guido@python.org>
Thu, 22 May 1997 20:43:24 +0000 (20:43 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 22 May 1997 20:43:24 +0000 (20:43 +0000)
Doc/myformat.sty

index b11747809801173c573e628d0586c469f17091c8..3b415d0e5bf4ee0307b9b46f65249cd5652619eb 100644 (file)
 \let\endfulllineitems\endlist
 
 
-% cfuncdesc should be called as an \begin{cfuncdesc} ... \end{cfuncdesc}
+% cfuncdesc should be called as
+% \begin{cfuncdesc}{type}{name}{arglist}
+% ... description ...
+% \end{cfuncdesc}
 \newcommand{\cfuncline}[3]{\item[\code{#1 #2(\varvars{#3})}]\ttindex{#2}}
 \newcommand{\cfuncdesc}[3]{\fulllineitems\cfuncline{#1}{#2}{#3}}
 \let\endcfuncdesc\endfulllineitems
 
+\newcommand{\cvarline}[2]{\item[\code{#1 #2}]\ttindex{#2}}
+\newcommand{\cvardesc}[2]{\fulllineitems\cvarline{#1}{#2}}
+\let\endcvardesc\endfulllineitems
+
+\newcommand{\ctypeline}[1]{\item[\code{#1}]\ttindex{#1}}
+\newcommand{\ctypedesc}[1]{\fulllineitems\ctypeline{#1}}
+\let\endctypedesc\endfulllineitems
+
 % funcdesc should be called as an \begin{funcdesc} ... \end{funcdesc}
 \newcommand{\funcline}[2]{\item[\code{#1(\varvars{#2})}]\ttindex{#1}}
 \newcommand{\funcdesc}[2]{\fulllineitems\funcline{#1}{#2}}