summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-07-06 22:44:48 (GMT)
committerFred Drake <fdrake@acm.org>2001-07-06 22:44:48 (GMT)
commitb4b64daa5ea2291425ebdac3b4d7ec436c3a40b5 (patch)
tree7bd2f1aaa8296aea3920bac10a3bfd92baf94c96 /Doc
parent77602f2e32a4d9692b29ed1c6a7af41389a7492c (diff)
downloadcpython-b4b64daa5ea2291425ebdac3b4d7ec436c3a40b5.zip
cpython-b4b64daa5ea2291425ebdac3b4d7ec436c3a40b5.tar.gz
cpython-b4b64daa5ea2291425ebdac3b4d7ec436c3a40b5.tar.bz2
Add \ulink, grammar production markup.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/texinputs/python.sty15
1 files changed, 15 insertions, 0 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty
index c5d55a8..8ce759b 100644
--- a/Doc/texinputs/python.sty
+++ b/Doc/texinputs/python.sty
@@ -754,6 +754,7 @@
\newcommand{\NULL}{\constant{NULL}}
\newcommand{\infinity}{\ensuremath{\infty}}
\newcommand{\plusminus}{\ensuremath{\pm}}
+\newcommand{\menuselection}[1]{{\def\sub{ \ensuremath{>} }#1}}
% Also for consistency: spell Python "Python", not "python"!
@@ -857,12 +858,26 @@
\newcommand{\programopt}[1]{\strong{#1}}
% Note that \longprogramopt provides the '--'!
\newcommand{\longprogramopt}[1]{\strong{-{}-#1}}
+% \ulink{link text}{URL}
+\newcommand{\ulink}[2]{#1}
% cited titles: \citetitle{Title of Work}
% online: \citetitle[url-to-resource]{Title of Work}
\newcommand{\citetitle}[2][URL]{\emph{#2}}
+\newenvironment{productionlist}[1][\py@badkey]{
+ \def\optional##1{{\Large[}##1{\Large]}}
+ \def\production##1##2{\code{##1}&::=&\code{##2}\\}
+ \def\orgroup##1{{\def\or{\textbar\ }##1}}
+ \def\token##1{##1}
+ \begin{center}
+ \begin{tabular}{lcl}
+}{%
+ \end{tabular}
+ \end{center}
+}
+
% Deprecation stuff.
% Should be extended to allow an index / list of deprecated stuff. But
% there's a lot of stuff that needs to be done to make that automatable.