Skip to content

Commit 518bfde

Browse files
committed
[macros] Remove \xspace from macros taking a mandatory argument.
Other than positively influencing kerning, this removal has no effect.
1 parent 42c5a2c commit 518bfde

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

@@ -170,10 +170,10 @@
170170

171171
%%--------------------------------------------------
172172
%% Macros for funky text
173-
\newcommand{\Cpp}{\texorpdfstring{C\kern-0.05em\protect\raisebox{.35ex}{\textsmaller[2]{+\kern-0.05em+}}}{C++}\xspace}
174-
\newcommand{\CppIII}{\Cpp 2003\xspace}
175-
\newcommand{\CppXI}{\Cpp 2011\xspace}
176-
\newcommand{\CppXIV}{\Cpp 2014\xspace}
173+
\newcommand{\Cpp}{\texorpdfstring{C\kern-0.05em\protect\raisebox{.35ex}{\textsmaller[2]{+\kern-0.05em+}}}{C++}}
174+
\newcommand{\CppIII}{\Cpp{} 2003}
175+
\newcommand{\CppXI}{\Cpp{} 2011}
176+
\newcommand{\CppXIV}{\Cpp{} 2014}
177177
\newcommand{\opt}{{\ensuremath{_\mathit{opt}}}\xspace}
178178
\newcommand{\dcr}{-{-}}
179179
\newcommand{\bigoh}[1]{\ensuremath{\mathscr{O}(#1)}}
@@ -198,12 +198,12 @@
198198
%% Notes and examples
199199
\newcommand{\noteintro}[1]{[\,\textit{#1:}\space}
200200
\newcommand{\noteoutro}[1]{\textit{\,---\,end #1}\,]}
201-
\newenvironment{note}[1][Note]{\noteintro{#1}}{\noteoutro{note}\xspace}
202-
\newenvironment{example}[1][Example]{\noteintro{#1}}{\noteoutro{example}\xspace}
201+
\newenvironment{note}[1][Note]{\noteintro{#1}}{\noteoutro{note}\space}
202+
\newenvironment{example}[1][Example]{\noteintro{#1}}{\noteoutro{example}\space}
203203

204204
%% Library function descriptions
205-
\newcommand{\Fundescx}[1]{\textit{#1}\xspace}
206-
\newcommand{\Fundesc}[1]{\Fundescx{#1:}}
205+
\newcommand{\Fundescx}[1]{\textit{#1}}
206+
\newcommand{\Fundesc}[1]{\Fundescx{#1:}\xspace}
207207
\newcommand{\required}{\Fundesc{Required behavior}}
208208
\newcommand{\requires}{\Fundesc{Requires}}
209209
\newcommand{\effects}{\Fundesc{Effects}}
@@ -279,14 +279,14 @@
279279
\newcommand{\commentellip}{\tcode{/* ...\ */}}
280280

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

288288
%% Change descriptions
289-
\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\xspace}
289+
\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\space}
290290
\newcommand{\change}{\diffdef{Change}}
291291
\newcommand{\rationale}{\diffdef{Rationale}}
292292
\newcommand{\effect}{\diffdef{Effect on original feature}}
@@ -295,13 +295,13 @@
295295

296296
%% Miscellaneous
297297
\newcommand{\uniquens}{\placeholdernc{unique}}
298-
\newcommand{\stage}[1]{\item{\textbf{Stage #1:}}\xspace}
299-
\newcommand{\doccite}[1]{\textit{#1}\xspace}
298+
\newcommand{\stage}[1]{\item{\textbf{Stage #1:}}}
299+
\newcommand{\doccite}[1]{\textit{#1}}
300300
\newcommand{\cvqual}[1]{\textit{#1}}
301301
\newcommand{\cv}{\cvqual{cv}}
302-
\renewcommand{\emph}[1]{\textit{#1}\xspace}
303-
\newcommand{\numconst}[1]{\textsl{#1}\xspace}
304-
\newcommand{\logop}[1]{{\footnotesize #1}\xspace}
302+
\renewcommand{\emph}[1]{\textit{#1}}
303+
\newcommand{\numconst}[1]{\textsl{#1}}
304+
\newcommand{\logop}[1]{{\footnotesize #1}}
305305

306306
%%--------------------------------------------------
307307
%% Environments for code listings.
@@ -389,7 +389,7 @@
389389
\newenvironment{bnfbase}
390390
{
391391
\newcommand{\nontermdef}[1]{{\BnfNontermshape##1\itcorr}\indexgrammar{\idxgram{##1}}\textnormal{:}}
392-
\newcommand{\terminal}[1]{{\BnfTermshape ##1}\xspace}
392+
\newcommand{\terminal}[1]{{\BnfTermshape ##1}}
393393
\newcommand{\descr}[1]{\textnormal{##1}}
394394
\newcommand{\bnfindentfirst}{\BnfIndent}
395395
\newcommand{\bnfindentinc}{\BnfInc}

0 commit comments

Comments
 (0)