mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
New \grammartoken markup, similar to \token but allowed everywhere.
This commit is contained in:
parent
2a274a7e41
commit
16bb41934c
2 changed files with 6 additions and 0 deletions
|
@ -867,11 +867,13 @@
|
|||
\newcommand{\citetitle}[2][URL]{\emph{#2}}
|
||||
|
||||
|
||||
\newcommand{\grammartoken}[1]{\texttt{#1}}
|
||||
\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}
|
||||
\let\grammartoken=\token
|
||||
\begin{center}
|
||||
\begin{tabular}{lcl}
|
||||
}{%
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue