Mercurial > cpython-lru_cache-weakref
comparison Doc/texinputs/python.sty @ 8229:df752c08b462 legacy-trunk
\itembreak,
\itemjoin,
\kwindex: Revived definitions to support the Python Reference Manual.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Wed, 06 May 1998 19:36:01 +0000 |
| parents | 25c2aea64501 |
| children | 4674cd2f6f07 |
comparison
equal
deleted
inserted
replaced
| 8228:9d642a735a13 | 8229:df752c08b462 |
|---|---|
| 257 \index{#4!#1 #2 #3} | 257 \index{#4!#1 #2 #3} |
| 258 } | 258 } |
| 259 | 259 |
| 260 % Command to generate a reference to a function, statement, keyword, | 260 % Command to generate a reference to a function, statement, keyword, |
| 261 % operator. | 261 % operator. |
| 262 \newcommand{\kwindex}[1]{\indexii{keyword}{#1@{\py@idxcode{#1}}}} | |
| 262 \newcommand{\stindex}[1]{\indexii{statement}{#1@{\py@idxcode{#1}}}} | 263 \newcommand{\stindex}[1]{\indexii{statement}{#1@{\py@idxcode{#1}}}} |
| 263 \newcommand{\opindex}[1]{\indexii{operator}{#1@{\py@idxcode{#1}}}} | 264 \newcommand{\opindex}[1]{\indexii{operator}{#1@{\py@idxcode{#1}}}} |
| 264 \newcommand{\exindex}[1]{\indexii{exception}{#1@{\py@idxcode{#1}}}} | 265 \newcommand{\exindex}[1]{\indexii{exception}{#1@{\py@idxcode{#1}}}} |
| 265 \newcommand{\obindex}[1]{\indexii{object}{#1}} | 266 \newcommand{\obindex}[1]{\indexii{object}{#1}} |
| 266 \newcommand{\bifuncindex}[1]{\withsubitem{(built-in function)}{\ttindex{#1()}}} | 267 \newcommand{\bifuncindex}[1]{\withsubitem{(built-in function)}{\ttindex{#1()}}} |
| 617 } | 618 } |
| 618 | 619 |
| 619 \newcommand{\itemnewline}[1]{% | 620 \newcommand{\itemnewline}[1]{% |
| 620 \@tempdima\linewidth% | 621 \@tempdima\linewidth% |
| 621 \advance\@tempdima \leftmargin\makebox[\@tempdima][l]{#1}% | 622 \advance\@tempdima \leftmargin\makebox[\@tempdima][l]{#1}% |
| 623 } | |
| 624 | |
| 625 % Define \itembreak: force the text after an item to start on a new line | |
| 626 \newcommand{\itembreak}{% | |
| 627 \mbox{}% | |
| 628 \\*[0mm]% | |
| 629 } | |
| 630 | |
| 631 % Define \itemjoin: some negative vspace to join two items together | |
| 632 \newcommand{\itemjoin}{% | |
| 633 \mbox{}% | |
| 634 \vspace{-\itemsep}% | |
| 635 \vspace{-\parsep}% | |
| 622 } | 636 } |
| 623 | 637 |
| 624 % Cross-referencing (AMK, new impl. FLD) | 638 % Cross-referencing (AMK, new impl. FLD) |
| 625 % Sample usage: | 639 % Sample usage: |
| 626 % \begin{seealso} | 640 % \begin{seealso} |
