Skip to content

Commit cb67aa1

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

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
@@ -126,7 +126,7 @@
126126
\let\omname\mname%
127127
\let\mname\idxmname%
128128
\let\oCpp\Cpp%
129-
\let\Cpp\idxCpp
129+
\let\Cpp\idxCpp%
130130
\let\oBreakableUnderscore\BreakableUnderscore% See the "underscore" package.
131131
\let\BreakableUnderscore\textunderscore%
132132
\edef\x{#1}%
@@ -164,11 +164,11 @@
164164

165165
% Code and definitions embedded in text.
166166
\newcommand{\tcode}[1]{\CodeStylex{#1}}
167-
\newcommand{\techterm}[1]{\textit{#1}\xspace}
168-
\newcommand{\defnx}[2]{\indexdefn{#2}\textit{#1}\xspace}
167+
\newcommand{\techterm}[1]{\textit{#1}}
168+
\newcommand{\defnx}[2]{\indexdefn{#2}\textit{#1}}
169169
\newcommand{\defn}[1]{\defnx{#1}{#1}}
170-
\newcommand{\term}[1]{\textit{#1}\xspace}
171-
\newcommand{\grammarterm}[1]{\textit{#1}\xspace}
170+
\newcommand{\term}[1]{\textit{#1}}
171+
\newcommand{\grammarterm}[1]{\textit{#1}}
172172
\newcommand{\grammartermnc}[1]{\textit{#1}\nocorr}
173173
\newcommand{\placeholder}[1]{\textit{#1}}
174174
\newcommand{\placeholdernc}[1]{\textit{#1\nocorr}}
@@ -179,10 +179,10 @@
179179

180180
%%--------------------------------------------------
181181
%% Macros for funky text
182-
\newcommand{\Cpp}{\texorpdfstring{C\kern-0.05em\protect\raisebox{.35ex}{\textsmaller[2]{+\kern-0.05em+}}}{C++}\xspace}
183-
\newcommand{\CppIII}{\Cpp 2003\xspace}
184-
\newcommand{\CppXI}{\Cpp 2011\xspace}
185-
\newcommand{\CppXIV}{\Cpp 2014\xspace}
182+
\newcommand{\Cpp}{\texorpdfstring{C\kern-0.05em\protect\raisebox{.35ex}{\textsmaller[2]{+\kern-0.05em+}}}{C++}}
183+
\newcommand{\CppIII}{\Cpp{} 2003}
184+
\newcommand{\CppXI}{\Cpp{} 2011}
185+
\newcommand{\CppXIV}{\Cpp{} 2014}
186186
\newcommand{\opt}{{\ensuremath{_\mathit{opt}}}\xspace}
187187
\newcommand{\dcr}{-{-}}
188188
\newcommand{\bigoh}[1]{\ensuremath{\mathscr{O}(#1)}}
@@ -207,12 +207,12 @@
207207
%% Notes and examples
208208
\newcommand{\noteintro}[1]{[\,\textit{#1:}\space}
209209
\newcommand{\noteoutro}[1]{\textit{\,---\,end #1}\,]}
210-
\newenvironment{note}[1][Note]{\noteintro{#1}}{\noteoutro{note}\xspace}
211-
\newenvironment{example}[1][Example]{\noteintro{#1}}{\noteoutro{example}\xspace}
210+
\newenvironment{note}[1][Note]{\noteintro{#1}}{\noteoutro{note}\space}
211+
\newenvironment{example}[1][Example]{\noteintro{#1}}{\noteoutro{example}\space}
212212

213213
%% Library function descriptions
214-
\newcommand{\Fundescx}[1]{\textit{#1}\xspace}
215-
\newcommand{\Fundesc}[1]{\Fundescx{#1:}}
214+
\newcommand{\Fundescx}[1]{\textit{#1}}
215+
\newcommand{\Fundesc}[1]{\Fundescx{#1:}\xspace}
216216
\newcommand{\required}{\Fundesc{Required behavior}}
217217
\newcommand{\requires}{\Fundesc{Requires}}
218218
\newcommand{\effects}{\Fundesc{Effects}}
@@ -288,14 +288,14 @@
288288
\newcommand{\commentellip}{\tcode{/* ...\ */}}
289289

290290
%% Ranges
291-
\newcommand{\Range}[4]{\tcode{#1#3,\penalty2000{} #4#2}\xspace}
291+
\newcommand{\Range}[4]{\tcode{#1#3,\penalty2000{} #4#2}}
292292
\newcommand{\crange}[2]{\Range{[}{]}{#1}{#2}}
293293
\newcommand{\brange}[2]{\Range{(}{]}{#1}{#2}}
294294
\newcommand{\orange}[2]{\Range{(}{)}{#1}{#2}}
295295
\newcommand{\range}[2]{\Range{[}{)}{#1}{#2}}
296296

297297
%% Change descriptions
298-
\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\xspace}
298+
\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\space}
299299
\newcommand{\change}{\diffdef{Change}}
300300
\newcommand{\rationale}{\diffdef{Rationale}}
301301
\newcommand{\effect}{\diffdef{Effect on original feature}}
@@ -304,13 +304,13 @@
304304

305305
%% Miscellaneous
306306
\newcommand{\uniquens}{\placeholdernc{unique}}
307-
\newcommand{\stage}[1]{\item{\textbf{Stage #1:}}\xspace}
308-
\newcommand{\doccite}[1]{\textit{#1}\xspace}
307+
\newcommand{\stage}[1]{\item{\textbf{Stage #1:}}}
308+
\newcommand{\doccite}[1]{\textit{#1}}
309309
\newcommand{\cvqual}[1]{\textit{#1}}
310310
\newcommand{\cv}{\cvqual{cv}}
311-
\renewcommand{\emph}[1]{\textit{#1}\xspace}
312-
\newcommand{\numconst}[1]{\textsl{#1}\xspace}
313-
\newcommand{\logop}[1]{{\footnotesize #1}\xspace}
311+
\renewcommand{\emph}[1]{\textit{#1}}
312+
\newcommand{\numconst}[1]{\textsl{#1}}
313+
\newcommand{\logop}[1]{{\footnotesize #1}}
314314

315315
%%--------------------------------------------------
316316
%% Environments for code listings.
@@ -398,7 +398,7 @@
398398
\newenvironment{bnfbase}
399399
{
400400
\newcommand{\nontermdef}[1]{{\BnfNontermshape##1\itcorr}\indexgrammar{\idxgram{##1}}\textnormal{:}}
401-
\newcommand{\terminal}[1]{{\BnfTermshape ##1}\xspace}
401+
\newcommand{\terminal}[1]{{\BnfTermshape ##1}}
402402
\newcommand{\descr}[1]{\textnormal{##1}}
403403
\newcommand{\bnfindentfirst}{\BnfIndent}
404404
\newcommand{\bnfindentinc}{\BnfInc}

0 commit comments

Comments
 (0)