File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 202
202
\newcommand {\CodeStyle }{\ttfamily }
203
203
\newcommand {\CodeStylex }[1]{\texttt {#1 }}
204
204
205
+ \definecolor {light-gray}{gray}{0.2}
206
+
205
207
% General grammar style
206
208
\newcommand {\GrammarStyle }{\itfamily }
207
- \newcommand {\GrammarStylex }[1]{\textit {#1 }}
209
+ \newcommand {\GrammarStylex }[1]{\textcolor {light-gray}{ \sffamily \ textit {#1 } }}
208
210
209
211
% Code and definitions embedded in text.
210
212
\newcommand {\tcode }[1]{\CodeStylex {#1}}
240
242
\newcommand {\CppXI }{\Cpp {} 2011}
241
243
\newcommand {\CppXIV }{\Cpp {} 2014}
242
244
\newcommand {\CppXVII }{\Cpp {} 2017}
243
- \newcommand {\opt }[1]{#1\ensuremath {_\mathit {opt}}}
245
+ \newcommand {\opt }[1]{#1\ensuremath {_\mathit {\color {black} opt}}}
244
246
\newcommand {\dcr }{-{-}}
245
247
\newcommand {\bigoh }[1]{\ensuremath {\mathscr {O}(#1)}}
246
248
526
528
\setlength {\BnfInc }{\BnfIndent }
527
529
\newlength {\BnfRest }
528
530
\setlength {\BnfRest }{2\BnfIndent }
529
- \newcommand {\BnfNontermshape }{\small\rmfamily \itshape }
531
+ \newcommand {\BnfNontermshape }{\small\sffamily \itshape\color {light-gray} }
530
532
\newcommand {\BnfTermshape }{\small\ttfamily\upshape }
531
533
532
534
\newenvironment {bnfbase}
Original file line number Diff line number Diff line change 26
26
\usepackage [final ]{microtype }
27
27
\usepackage {multicol }
28
28
\usepackage {lmodern }
29
+ \usepackage {xcolor }
29
30
\usepackage [T1 ]{fontenc }
30
31
\usepackage [pdftex, final ]{graphicx }
31
32
\usepackage [pdftex,
You can’t perform that action at this time.
0 commit comments