Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0cabff9

Browse files
committed
\itembreak,
\itemjoin, \kwindex: Revived definitions to support the Python Reference Manual.
1 parent 83b8518 commit 0cabff9

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Doc/texinputs/python.sty

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@
259259

260260
% Command to generate a reference to a function, statement, keyword,
261261
% operator.
262+
\newcommand{\kwindex}[1]{\indexii{keyword}{#1@{\py@idxcode{#1}}}}
262263
\newcommand{\stindex}[1]{\indexii{statement}{#1@{\py@idxcode{#1}}}}
263264
\newcommand{\opindex}[1]{\indexii{operator}{#1@{\py@idxcode{#1}}}}
264265
\newcommand{\exindex}[1]{\indexii{exception}{#1@{\py@idxcode{#1}}}}
@@ -621,6 +622,19 @@
621622
\advance\@tempdima \leftmargin\makebox[\@tempdima][l]{#1}%
622623
}
623624

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}%
636+
}
637+
624638
% Cross-referencing (AMK, new impl. FLD)
625639
% Sample usage:
626640
% \begin{seealso}

0 commit comments

Comments
 (0)