]> granicus.if.org Git - python/commitdiff
\itembreak,
authorFred Drake <fdrake@acm.org>
Wed, 6 May 1998 19:36:01 +0000 (19:36 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 6 May 1998 19:36:01 +0000 (19:36 +0000)
\itemjoin,
\kwindex:  Revived definitions to support the Python Reference Manual.

Doc/texinputs/python.sty

index 9fc95e5ae72d0c6f9168a4b195c8214be26efca6..0100df7239f4e3af8ee9aee58cb7ef1ee37e4a5e 100644 (file)
 
 % Command to generate a reference to a function, statement, keyword,
 % operator.
+\newcommand{\kwindex}[1]{\indexii{keyword}{#1@{\py@idxcode{#1}}}}
 \newcommand{\stindex}[1]{\indexii{statement}{#1@{\py@idxcode{#1}}}}
 \newcommand{\opindex}[1]{\indexii{operator}{#1@{\py@idxcode{#1}}}}
 \newcommand{\exindex}[1]{\indexii{exception}{#1@{\py@idxcode{#1}}}}
   \advance\@tempdima \leftmargin\makebox[\@tempdima][l]{#1}%
 }
 
+% Define \itembreak: force the text after an item to start on a new line
+\newcommand{\itembreak}{%
+  \mbox{}%
+  \\*[0mm]%
+}
+
+% Define \itemjoin: some negative vspace to join two items together
+\newcommand{\itemjoin}{%
+  \mbox{}%
+  \vspace{-\itemsep}%
+  \vspace{-\parsep}%
+}
+
 % Cross-referencing (AMK, new impl. FLD)
 % Sample usage:
 %  \begin{seealso}