comparison Doc/texinputs/python.sty @ 19412:d4ba6e2aaae3 legacy-trunk

New \grammartoken markup, similar to \token but allowed everywhere.
author Fred Drake <fdrake@acm.org>
date Mon, 20 Aug 2001 21:36:38 +0000
parents dac9cca49012
children 12a787fb71df
comparison
equal deleted inserted replaced
19411:0d1bbe65a1d8 19412:d4ba6e2aaae3
865 % cited titles: \citetitle{Title of Work} 865 % cited titles: \citetitle{Title of Work}
866 % online: \citetitle[url-to-resource]{Title of Work} 866 % online: \citetitle[url-to-resource]{Title of Work}
867 \newcommand{\citetitle}[2][URL]{\emph{#2}} 867 \newcommand{\citetitle}[2][URL]{\emph{#2}}
868 868
869 869
870 \newcommand{\grammartoken}[1]{\texttt{#1}}
870 \newenvironment{productionlist}[1][\py@badkey]{ 871 \newenvironment{productionlist}[1][\py@badkey]{
871 \def\optional##1{{\Large[}##1{\Large]}} 872 \def\optional##1{{\Large[}##1{\Large]}}
872 \def\production##1##2{\code{##1}&::=&\code{##2}\\} 873 \def\production##1##2{\code{##1}&::=&\code{##2}\\}
873 \def\orgroup##1{{\def\or{\textbar\ }##1}} 874 \def\orgroup##1{{\def\or{\textbar\ }##1}}
874 \def\token##1{##1} 875 \def\token##1{##1}
876 \let\grammartoken=\token
875 \begin{center} 877 \begin{center}
876 \begin{tabular}{lcl} 878 \begin{tabular}{lcl}
877 }{% 879 }{%
878 \end{tabular} 880 \end{tabular}
879 \end{center} 881 \end{center}