Skip to content

Commit f903f6e

Browse files
committed
[std] Switch grammar to sffamily itshape gray 0.2
1 parent 05bb124 commit f903f6e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

source/macros.tex

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,11 @@
202202
\newcommand{\CodeStyle}{\ttfamily}
203203
\newcommand{\CodeStylex}[1]{\texttt{#1}}
204204

205+
\definecolor{light-gray}{gray}{0.2}
206+
205207
% General grammar style
206208
\newcommand{\GrammarStyle}{\itfamily}
207-
\newcommand{\GrammarStylex}[1]{\textit{#1}}
209+
\newcommand{\GrammarStylex}[1]{\textcolor{light-gray}{\sffamily\textit{#1}}}
208210

209211
% Code and definitions embedded in text.
210212
\newcommand{\tcode}[1]{\CodeStylex{#1}}
@@ -240,7 +242,7 @@
240242
\newcommand{\CppXI}{\Cpp{} 2011}
241243
\newcommand{\CppXIV}{\Cpp{} 2014}
242244
\newcommand{\CppXVII}{\Cpp{} 2017}
243-
\newcommand{\opt}[1]{#1\ensuremath{_\mathit{opt}}}
245+
\newcommand{\opt}[1]{#1\ensuremath{_\mathit{\color{black}opt}}}
244246
\newcommand{\dcr}{-{-}}
245247
\newcommand{\bigoh}[1]{\ensuremath{\mathscr{O}(#1)}}
246248

@@ -526,7 +528,7 @@
526528
\setlength{\BnfInc}{\BnfIndent}
527529
\newlength{\BnfRest}
528530
\setlength{\BnfRest}{2\BnfIndent}
529-
\newcommand{\BnfNontermshape}{\small\rmfamily\itshape}
531+
\newcommand{\BnfNontermshape}{\small\sffamily\itshape\color{light-gray}}
530532
\newcommand{\BnfTermshape}{\small\ttfamily\upshape}
531533

532534
\newenvironment{bnfbase}

source/std.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
\usepackage[final]{microtype}
2727
\usepackage{multicol}
2828
\usepackage{lmodern}
29+
\usepackage{xcolor}
2930
\usepackage[T1]{fontenc}
3031
\usepackage[pdftex, final]{graphicx}
3132
\usepackage[pdftex,

0 commit comments

Comments
 (0)