Skip to content

Commit ffb9408

Browse files
committed
[macros] Change \nontermdef so that the colon is styled as normal, not-italicized text
The colon is not part of the name of the grammar production which it follows, so it should not be styled like a grammar production name.
1 parent 60f0012 commit ffb9408

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/macros.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,9 @@
393393

394394
\newenvironment{bnfbase}
395395
{
396-
\newcommand{\nontermdef}[1]{\nonterminal{##1}\indexgrammar{\idxgram{##1}}:}
396+
\newcommand{\nontermdef}[1]{\nonterminal{##1\itcorr}\indexgrammar{\idxgram{##1}}\textnormal{:}}
397397
\newcommand{\terminal}[1]{{\BnfTermshape ##1}\xspace}
398-
\newcommand{\descr}[1]{\normalfont{##1}}
398+
\newcommand{\descr}[1]{\textnormal{##1}}
399399
\newcommand{\bnfindentfirst}{\BnfIndent}
400400
\newcommand{\bnfindentinc}{\BnfInc}
401401
\newcommand{\bnfindentrest}{\BnfRest}

0 commit comments

Comments
 (0)