diff options
author | Fred Drake <fdrake@acm.org> | 1998-05-06 19:36:01 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-05-06 19:36:01 (GMT) |
commit | 0cabff904fe5c537e62b5f4c8394bfe7066477eb (patch) | |
tree | ba471e09c31bfca0431bd30a1c4ce355ee56e09d | |
parent | 83b851885db7abb0736cb559027a699731bf59d1 (diff) | |
download | cpython-0cabff904fe5c537e62b5f4c8394bfe7066477eb.zip cpython-0cabff904fe5c537e62b5f4c8394bfe7066477eb.tar.gz cpython-0cabff904fe5c537e62b5f4c8394bfe7066477eb.tar.bz2 |
\itembreak,
\itemjoin,
\kwindex: Revived definitions to support the Python Reference Manual.
-rw-r--r-- | Doc/texinputs/python.sty | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty index 9fc95e5..0100df7 100644 --- a/Doc/texinputs/python.sty +++ b/Doc/texinputs/python.sty @@ -259,6 +259,7 @@ % 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}}}} @@ -621,6 +622,19 @@ \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} |