Skip to content

Commit 5a229f8

Browse files
committed
[macros] Remove \xspace from macros taking a mandatory argument.
Other than positively influencing kerning, this removal has no effect.
1 parent 3b5c2d7 commit 5a229f8

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

source/macros.tex

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
\let\omname\mname%
119119
\let\mname\idxmname%
120120
\let\oCpp\Cpp%
121-
\let\Cpp\idxCpp
121+
\let\Cpp\idxCpp%
122122
\let\oBreakableUnderscore\BreakableUnderscore% See the "underscore" package.
123123
\let\BreakableUnderscore\textunderscore%
124124
\edef\x{#1}%
@@ -156,11 +156,11 @@
156156

157157
% Code and definitions embedded in text.
158158
\newcommand{\tcode}[1]{\CodeStylex{#1}}
159-
\newcommand{\techterm}[1]{\textit{#1}\xspace}
160-
\newcommand{\defnx}[2]{\indexdefn{#2}\textit{#1}\xspace}
159+
\newcommand{\techterm}[1]{\textit{#1}}
160+
\newcommand{\defnx}[2]{\indexdefn{#2}\textit{#1}}
161161
\newcommand{\defn}[1]{\defnx{#1}{#1}}
162-
\newcommand{\term}[1]{\textit{#1}\xspace}
163-
\newcommand{\grammarterm}[1]{\textit{#1}\xspace}
162+
\newcommand{\term}[1]{\textit{#1}}
163+
\newcommand{\grammarterm}[1]{\textit{#1}}
164164
\newcommand{\placeholder}[1]{\textit{#1}}
165165
\newcommand{\placeholdernc}[1]{\textit{#1\nocorr}}
166166

@@ -172,10 +172,10 @@
172172

173173
%%--------------------------------------------------
174174
%% Macros for funky text
175-
\newcommand{\Cpp}{\texorpdfstring{C\kern-0.05em\protect\raisebox{.35ex}{\textsmaller[2]{+\kern-0.05em+}}}{C++}\xspace}
176-
\newcommand{\CppIII}{\Cpp 2003\xspace}
177-
\newcommand{\CppXI}{\Cpp 2011\xspace}
178-
\newcommand{\CppXIV}{\Cpp 2014\xspace}
175+
\newcommand{\Cpp}{\texorpdfstring{C\kern-0.05em\protect\raisebox{.35ex}{\textsmaller[2]{+\kern-0.05em+}}}{C++}}
176+
\newcommand{\CppIII}{\Cpp{} 2003}
177+
\newcommand{\CppXI}{\Cpp{} 2011}
178+
\newcommand{\CppXIV}{\Cpp{} 2014}
179179
\newcommand{\opt}{{\ensuremath{_\mathit{opt}}}\xspace}
180180
\newcommand{\dcr}{-{-}}
181181
\newcommand{\bigoh}[1]{\ensuremath{\mathscr{O}(#1)}}
@@ -200,12 +200,12 @@
200200
%% Notes and examples
201201
\newcommand{\noteintro}[1]{[\,\textit{#1:}\space}
202202
\newcommand{\noteoutro}[1]{\textit{\,---\,end #1}\,]}
203-
\newenvironment{note}[1][Note]{\noteintro{#1}}{\noteoutro{note}\xspace}
204-
\newenvironment{example}[1][Example]{\noteintro{#1}}{\noteoutro{example}\xspace}
203+
\newenvironment{note}[1][Note]{\noteintro{#1}}{\noteoutro{note}\space}
204+
\newenvironment{example}[1][Example]{\noteintro{#1}}{\noteoutro{example}\space}
205205

206206
%% Library function descriptions
207-
\newcommand{\Fundescx}[1]{\textit{#1}\xspace}
208-
\newcommand{\Fundesc}[1]{\Fundescx{#1:}}
207+
\newcommand{\Fundescx}[1]{\textit{#1}}
208+
\newcommand{\Fundesc}[1]{\Fundescx{#1:}\xspace}
209209
\newcommand{\required}{\Fundesc{Required behavior}}
210210
\newcommand{\requires}{\Fundesc{Requires}}
211211
\newcommand{\effects}{\Fundesc{Effects}}
@@ -281,14 +281,14 @@
281281
\newcommand{\commentellip}{\tcode{/* ...\ */}}
282282

283283
%% Ranges
284-
\newcommand{\Range}[4]{\tcode{#1#3,\penalty2000{} #4#2}\xspace}
284+
\newcommand{\Range}[4]{\tcode{#1#3,\penalty2000{} #4#2}}
285285
\newcommand{\crange}[2]{\Range{[}{]}{#1}{#2}}
286286
\newcommand{\brange}[2]{\Range{(}{]}{#1}{#2}}
287287
\newcommand{\orange}[2]{\Range{(}{)}{#1}{#2}}
288288
\newcommand{\range}[2]{\Range{[}{)}{#1}{#2}}
289289

290290
%% Change descriptions
291-
\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\xspace}
291+
\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\space}
292292
\newcommand{\change}{\diffdef{Change}}
293293
\newcommand{\rationale}{\diffdef{Rationale}}
294294
\newcommand{\effect}{\diffdef{Effect on original feature}}
@@ -297,13 +297,13 @@
297297

298298
%% Miscellaneous
299299
\newcommand{\uniquens}{\placeholdernc{unique}}
300-
\newcommand{\stage}[1]{\item{\textbf{Stage #1:}}\xspace}
301-
\newcommand{\doccite}[1]{\textit{#1}\xspace}
300+
\newcommand{\stage}[1]{\item{\textbf{Stage #1:}}}
301+
\newcommand{\doccite}[1]{\textit{#1}}
302302
\newcommand{\cvqual}[1]{\textit{#1}}
303303
\newcommand{\cv}{\cvqual{cv}}
304-
\renewcommand{\emph}[1]{\textit{#1}\xspace}
305-
\newcommand{\numconst}[1]{\textsl{#1}\xspace}
306-
\newcommand{\logop}[1]{{\footnotesize #1}\xspace}
304+
\renewcommand{\emph}[1]{\textit{#1}}
305+
\newcommand{\numconst}[1]{\textsl{#1}}
306+
\newcommand{\logop}[1]{{\footnotesize #1}}
307307

308308
%%--------------------------------------------------
309309
%% Environments for code listings.
@@ -391,7 +391,7 @@
391391
\newenvironment{bnfbase}
392392
{
393393
\newcommand{\nontermdef}[1]{{\BnfNontermshape##1\itcorr}\indexgrammar{\idxgram{##1}}\textnormal{:}}
394-
\newcommand{\terminal}[1]{{\BnfTermshape ##1}\xspace}
394+
\newcommand{\terminal}[1]{{\BnfTermshape ##1}}
395395
\newcommand{\descr}[1]{\textnormal{##1}}
396396
\newcommand{\bnfindentfirst}{\BnfIndent}
397397
\newcommand{\bnfindentinc}{\BnfInc}

0 commit comments

Comments
 (0)