Skip to content

Commit bb45e96

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

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
@@ -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,11 +179,11 @@
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}
186-
\newcommand{\CppXVII}{\Cpp 2017\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}
186+
\newcommand{\CppXVII}{\Cpp{} 2017}
187187
\newcommand{\opt}{{\ensuremath{_\mathit{opt}}}\xspace}
188188
\newcommand{\dcr}{-{-}}
189189
\newcommand{\bigoh}[1]{\ensuremath{\mathscr{O}(#1)}}
@@ -208,12 +208,12 @@
208208
%% Notes and examples
209209
\newcommand{\noteintro}[1]{[\,\textit{#1:}\space}
210210
\newcommand{\noteoutro}[1]{\textit{\,---\,end #1}\,]}
211-
\newenvironment{note}[1][Note]{\noteintro{#1}}{\noteoutro{note}\xspace}
212-
\newenvironment{example}[1][Example]{\noteintro{#1}}{\noteoutro{example}\xspace}
211+
\newenvironment{note}[1][Note]{\noteintro{#1}}{\noteoutro{note}\space}
212+
\newenvironment{example}[1][Example]{\noteintro{#1}}{\noteoutro{example}\space}
213213

214214
%% Library function descriptions
215-
\newcommand{\Fundescx}[1]{\textit{#1}\xspace}
216-
\newcommand{\Fundesc}[1]{\Fundescx{#1:}}
215+
\newcommand{\Fundescx}[1]{\textit{#1}}
216+
\newcommand{\Fundesc}[1]{\Fundescx{#1:}\xspace}
217217
\newcommand{\required}{\Fundesc{Required behavior}}
218218
\newcommand{\requires}{\Fundesc{Requires}}
219219
\newcommand{\effects}{\Fundesc{Effects}}
@@ -289,14 +289,14 @@
289289
\newcommand{\commentellip}{\tcode{/* ...\ */}}
290290

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

298298
%% Change descriptions
299-
\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\xspace}
299+
\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\space}
300300
\newcommand{\change}{\diffdef{Change}}
301301
\newcommand{\rationale}{\diffdef{Rationale}}
302302
\newcommand{\effect}{\diffdef{Effect on original feature}}
@@ -305,13 +305,13 @@
305305

306306
%% Miscellaneous
307307
\newcommand{\uniquens}{\placeholdernc{unique}}
308-
\newcommand{\stage}[1]{\item{\textbf{Stage #1:}}\xspace}
309-
\newcommand{\doccite}[1]{\textit{#1}\xspace}
308+
\newcommand{\stage}[1]{\item{\textbf{Stage #1:}}}
309+
\newcommand{\doccite}[1]{\textit{#1}}
310310
\newcommand{\cvqual}[1]{\textit{#1}}
311311
\newcommand{\cv}{\cvqual{cv}}
312-
\renewcommand{\emph}[1]{\textit{#1}\xspace}
313-
\newcommand{\numconst}[1]{\textsl{#1}\xspace}
314-
\newcommand{\logop}[1]{{\footnotesize #1}\xspace}
312+
\renewcommand{\emph}[1]{\textit{#1}}
313+
\newcommand{\numconst}[1]{\textsl{#1}}
314+
\newcommand{\logop}[1]{{\footnotesize #1}}
315315

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

0 commit comments

Comments
 (0)