[Python-checkins] CVS: python/dist/src/Doc/texinputs python.sty,1.77,1.78
Fred L. Drake
fdrake@users.sourceforge.net
Fri, 06 Jul 2001 15:44:50 -0700
Update of /cvsroot/python/python/dist/src/Doc/texinputs
In directory usw-pr-cvs1:/tmp/cvs-serv30231/texinputs
Modified Files:
python.sty
Log Message:
Add \ulink, grammar production markup.
Index: python.sty
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/texinputs/python.sty,v
retrieving revision 1.77
retrieving revision 1.78
diff -C2 -r1.77 -r1.78
*** python.sty 2001/06/23 03:11:45 1.77
--- python.sty 2001/07/06 22:44:48 1.78
***************
*** 755,758 ****
--- 755,759 ----
\newcommand{\infinity}{\ensuremath{\infty}}
\newcommand{\plusminus}{\ensuremath{\pm}}
+ \newcommand{\menuselection}[1]{{\def\sub{ \ensuremath{>} }#1}}
% Also for consistency: spell Python "Python", not "python"!
***************
*** 858,861 ****
--- 859,864 ----
% Note that \longprogramopt provides the '--'!
\newcommand{\longprogramopt}[1]{\strong{-{}-#1}}
+ % \ulink{link text}{URL}
+ \newcommand{\ulink}[2]{#1}
% cited titles: \citetitle{Title of Work}
***************
*** 863,866 ****
--- 866,881 ----
\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.