Skip to content

Commit 4a90d19

Browse files
committed
[macros] Remove \xspace from macros taking a mandatory argument.
Other than positively influencing kerning, this removal has no effect.
1 parent 355a20b commit 4a90d19

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

source/macros.tex

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
\let\omname\mname%
136136
\let\mname\idxmname%
137137
\let\oCpp\Cpp%
138-
\let\Cpp\idxCpp
138+
\let\Cpp\idxCpp%
139139
\let\oBreakableUnderscore\BreakableUnderscore% See the "underscore" package.
140140
\let\BreakableUnderscore\textunderscore%
141141
\edef\x{#1}%
@@ -173,11 +173,11 @@
173173

174174
% Code and definitions embedded in text.
175175
\newcommand{\tcode}[1]{\CodeStylex{#1}}
176-
\newcommand{\techterm}[1]{\textit{#1}\xspace}
177-
\newcommand{\defnx}[2]{\indexdefn{#2}\textit{#1}\xspace}
176+
\newcommand{\techterm}[1]{\textit{#1}}
177+
\newcommand{\defnx}[2]{\indexdefn{#2}\textit{#1}}
178178
\newcommand{\defn}[1]{\defnx{#1}{#1}}
179-
\newcommand{\term}[1]{\textit{#1}\xspace}
180-
\newcommand{\grammarterm}[1]{\textit{#1}\xspace}
179+
\newcommand{\term}[1]{\textit{#1}}
180+
\newcommand{\grammarterm}[1]{\textit{#1}}
181181
\newcommand{\grammartermnc}[1]{\textit{#1}\nocorr}
182182
\newcommand{\placeholder}[1]{\textit{#1}}
183183
\newcommand{\placeholdernc}[1]{\textit{#1\nocorr}}
@@ -188,11 +188,11 @@
188188

189189
%%--------------------------------------------------
190190
%% Macros for funky text
191-
\newcommand{\Cpp}{\texorpdfstring{C\kern-0.05em\protect\raisebox{.35ex}{\textsmaller[2]{+\kern-0.05em+}}}{C++}\xspace}
192-
\newcommand{\CppIII}{\Cpp 2003\xspace}
193-
\newcommand{\CppXI}{\Cpp 2011\xspace}
194-
\newcommand{\CppXIV}{\Cpp 2014\xspace}
195-
\newcommand{\CppXVII}{\Cpp 2017\xspace}
191+
\newcommand{\Cpp}{\texorpdfstring{C\kern-0.05em\protect\raisebox{.35ex}{\textsmaller[2]{+\kern-0.05em+}}}{C++}}
192+
\newcommand{\CppIII}{\Cpp{} 2003}
193+
\newcommand{\CppXI}{\Cpp{} 2011}
194+
\newcommand{\CppXIV}{\Cpp{} 2014}
195+
\newcommand{\CppXVII}{\Cpp{} 2017}
196196
\newcommand{\opt}{{\ensuremath{_\mathit{opt}}}\xspace}
197197
\newcommand{\dcr}{-{-}}
198198
\newcommand{\bigoh}[1]{\ensuremath{\mathscr{O}(#1)}}
@@ -217,12 +217,12 @@
217217
%% Notes and examples
218218
\newcommand{\noteintro}[1]{[\,\textit{#1:}\space}
219219
\newcommand{\noteoutro}[1]{\textit{\,---\,end #1}\,]}
220-
\newenvironment{note}[1][Note]{\noteintro{#1}}{\noteoutro{note}\xspace}
221-
\newenvironment{example}[1][Example]{\noteintro{#1}}{\noteoutro{example}\xspace}
220+
\newenvironment{note}[1][Note]{\noteintro{#1}}{\noteoutro{note}\space}
221+
\newenvironment{example}[1][Example]{\noteintro{#1}}{\noteoutro{example}\space}
222222

223223
%% Library function descriptions
224-
\newcommand{\Fundescx}[1]{\textit{#1}\xspace}
225-
\newcommand{\Fundesc}[1]{\Fundescx{#1:}}
224+
\newcommand{\Fundescx}[1]{\textit{#1}}
225+
\newcommand{\Fundesc}[1]{\Fundescx{#1:}\xspace}
226226
\newcommand{\required}{\Fundesc{Required behavior}}
227227
\newcommand{\requires}{\Fundesc{Requires}}
228228
\newcommand{\effects}{\Fundesc{Effects}}
@@ -301,14 +301,14 @@
301301
\newcommand{\commentellip}{\tcode{/* ...\ */}}
302302

303303
%% Ranges
304-
\newcommand{\Range}[4]{\tcode{#1#3,\penalty2000{} #4#2}\xspace}
304+
\newcommand{\Range}[4]{\tcode{#1#3,\penalty2000{} #4#2}}
305305
\newcommand{\crange}[2]{\Range{[}{]}{#1}{#2}}
306306
\newcommand{\brange}[2]{\Range{(}{]}{#1}{#2}}
307307
\newcommand{\orange}[2]{\Range{(}{)}{#1}{#2}}
308308
\newcommand{\range}[2]{\Range{[}{)}{#1}{#2}}
309309

310310
%% Change descriptions
311-
\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\xspace}
311+
\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\space}
312312
\newcommand{\change}{\diffdef{Change}}
313313
\newcommand{\rationale}{\diffdef{Rationale}}
314314
\newcommand{\effect}{\diffdef{Effect on original feature}}
@@ -317,13 +317,13 @@
317317

318318
%% Miscellaneous
319319
\newcommand{\uniquens}{\placeholdernc{unique}}
320-
\newcommand{\stage}[1]{\item{\textbf{Stage #1:}}\xspace}
321-
\newcommand{\doccite}[1]{\textit{#1}\xspace}
320+
\newcommand{\stage}[1]{\item{\textbf{Stage #1:}}}
321+
\newcommand{\doccite}[1]{\textit{#1}}
322322
\newcommand{\cvqual}[1]{\textit{#1}}
323323
\newcommand{\cv}{\cvqual{cv}}
324-
\renewcommand{\emph}[1]{\textit{#1}\xspace}
325-
\newcommand{\numconst}[1]{\textsl{#1}\xspace}
326-
\newcommand{\logop}[1]{{\footnotesize #1}\xspace}
324+
\renewcommand{\emph}[1]{\textit{#1}}
325+
\newcommand{\numconst}[1]{\textsl{#1}}
326+
\newcommand{\logop}[1]{{\footnotesize #1}}
327327

328328
%%--------------------------------------------------
329329
%% Environments for code listings.
@@ -411,7 +411,7 @@
411411
\newenvironment{bnfbase}
412412
{
413413
\newcommand{\nontermdef}[1]{{\BnfNontermshape##1\itcorr}\indexgrammar{\idxgram{##1}}\textnormal{:}}
414-
\newcommand{\terminal}[1]{{\BnfTermshape ##1}\xspace}
414+
\newcommand{\terminal}[1]{{\BnfTermshape ##1}}
415415
\newcommand{\descr}[1]{\textnormal{##1}}
416416
\newcommand{\bnfindentfirst}{\BnfIndent}
417417
\newcommand{\bnfindentinc}{\BnfInc}

0 commit comments

Comments
 (0)