summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-09-09 15:27:43 (GMT)
committerFred Drake <fdrake@acm.org>1998-09-09 15:27:43 (GMT)
commitf9acc59c55784e1de247554c3639e9b11b398c61 (patch)
tree263f6702b593c58fdb3bb9c32507f6d48ac73134 /Doc
parent7ca9a1a466992e556b3192a7a0ba8baa652e342a (diff)
downloadcpython-f9acc59c55784e1de247554c3639e9b11b398c61.zip
cpython-f9acc59c55784e1de247554c3639e9b11b398c61.tar.gz
cpython-f9acc59c55784e1de247554c3639e9b11b398c61.tar.bz2
\itembreak,
\itemjoin: Remove obsolete macros. \itemnewline: Rename to \py@itemnewline, since it's only used internally.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/texinputs/python.sty27
1 files changed, 7 insertions, 20 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty
index 0e8bf8e..0df3602 100644
--- a/Doc/texinputs/python.sty
+++ b/Doc/texinputs/python.sty
@@ -433,11 +433,16 @@
% {fulllineitems} is used in one place in libregex.tex, but is really for
% internal use in this file.
%
+\newcommand{\py@itemnewline}[1]{%
+ \@tempdima\linewidth%
+ \advance\@tempdima \leftmargin\makebox[\@tempdima][l]{#1}%
+}
+
\newenvironment{fulllineitems}{
\begin{list}{}{\labelwidth \leftmargin \labelsep 0pt
\rightmargin 0pt \topsep -\parskip \partopsep \parskip
\itemsep -\parsep
- \let\makelabel=\itemnewline}
+ \let\makelabel=\py@itemnewline}
}{\end{list}}
% \optional is mostly for use in the arguments parameters to the various
@@ -759,24 +764,6 @@
\end{center}%
}
-\newcommand{\itemnewline}[1]{%
- \@tempdima\linewidth%
- \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}
@@ -858,7 +845,7 @@
%
\newenvironment{definitions}{%
\begin{description}%
- \def\term##1{\item[##1]\itembreak}
+ \def\term##1{\item[##1]\mbox{}\\*[0mm]}
}{%
\end{description}%
}