Skip to content

Commit df24226

Browse files
jensmaurertkoeppe
authored andcommitted
[macros] Remove \xspace from macros taking a mandatory argument.
Other than positively influencing kerning, this removal has no effect.
1 parent 3723f23 commit df24226

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

source/macros.tex

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
\let\omname\mname%
137137
\let\mname\idxmname%
138138
\let\oCpp\Cpp%
139-
\let\Cpp\idxCpp
139+
\let\Cpp\idxCpp%
140140
\let\oBreakableUnderscore\BreakableUnderscore% See the "underscore" package.
141141
\let\BreakableUnderscore\textunderscore%
142142
\edef\x{#1}%
@@ -174,11 +174,11 @@
174174

175175
% Code and definitions embedded in text.
176176
\newcommand{\tcode}[1]{\CodeStylex{#1}}
177-
\newcommand{\techterm}[1]{\textit{#1}\xspace}
178-
\newcommand{\defnx}[2]{\indexdefn{#2}\textit{#1}\xspace}
177+
\newcommand{\techterm}[1]{\textit{#1}}
178+
\newcommand{\defnx}[2]{\indexdefn{#2}\textit{#1}}
179179
\newcommand{\defn}[1]{\defnx{#1}{#1}}
180-
\newcommand{\term}[1]{\textit{#1}\xspace}
181-
\newcommand{\grammarterm}[1]{\textit{#1}\xspace}
180+
\newcommand{\term}[1]{\textit{#1}}
181+
\newcommand{\grammarterm}[1]{\textit{#1}}
182182
\newcommand{\grammartermnc}[1]{\textit{#1}\nocorr}
183183
\newcommand{\placeholder}[1]{\textit{#1}}
184184
\newcommand{\placeholdernc}[1]{\textit{#1\nocorr}}
@@ -189,11 +189,11 @@
189189

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

224224
%% Library function descriptions
225-
\newcommand{\Fundescx}[1]{\textit{#1}\xspace}
226-
\newcommand{\Fundesc}[1]{\Fundescx{#1:}}
225+
\newcommand{\Fundescx}[1]{\textit{#1}}
226+
\newcommand{\Fundesc}[1]{\Fundescx{#1:}\xspace}
227227
\newcommand{\required}{\Fundesc{Required behavior}}
228228
\newcommand{\requires}{\Fundesc{Requires}}
229229
\newcommand{\effects}{\Fundesc{Effects}}
@@ -302,14 +302,14 @@
302302
\newcommand{\commentellip}{\tcode{/* ...\ */}}
303303

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

311311
%% Change descriptions
312-
\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\xspace}
312+
\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\space}
313313
\newcommand{\change}{\diffdef{Change}}
314314
\newcommand{\rationale}{\diffdef{Rationale}}
315315
\newcommand{\effect}{\diffdef{Effect on original feature}}
@@ -318,13 +318,13 @@
318318

319319
%% Miscellaneous
320320
\newcommand{\uniquens}{\placeholdernc{unique}}
321-
\newcommand{\stage}[1]{\item{\textbf{Stage #1:}}\xspace}
322-
\newcommand{\doccite}[1]{\textit{#1}\xspace}
321+
\newcommand{\stage}[1]{\item{\textbf{Stage #1:}}}
322+
\newcommand{\doccite}[1]{\textit{#1}}
323323
\newcommand{\cvqual}[1]{\textit{#1}}
324324
\newcommand{\cv}{\cvqual{cv}}
325-
\renewcommand{\emph}[1]{\textit{#1}\xspace}
326-
\newcommand{\numconst}[1]{\textsl{#1}\xspace}
327-
\newcommand{\logop}[1]{{\footnotesize #1}\xspace}
325+
\renewcommand{\emph}[1]{\textit{#1}}
326+
\newcommand{\numconst}[1]{\textsl{#1}}
327+
\newcommand{\logop}[1]{{\footnotesize #1}}
328328

329329
%%--------------------------------------------------
330330
%% Environments for code listings.
@@ -420,7 +420,7 @@
420420
\newenvironment{bnfbase}
421421
{
422422
\newcommand{\nontermdef}[1]{{\BnfNontermshape##1\itcorr}\indexgrammar{\idxgram{##1}}\textnormal{:}}
423-
\newcommand{\terminal}[1]{{\BnfTermshape ##1}\xspace}
423+
\newcommand{\terminal}[1]{{\BnfTermshape ##1}}
424424
\newcommand{\descr}[1]{\textnormal{##1}}
425425
\newcommand{\bnfindentfirst}{\BnfIndent}
426426
\newcommand{\bnfindentinc}{\BnfInc}
@@ -558,4 +558,4 @@
558558
\let\addcontentsline\oldcontentsline%
559559
}
560560
\newcommand{\defncontext}[1]{\textlangle#1\textrangle}
561-
\newenvironment{defnote}{\addtocounter{termnote}{1}\noteintro{Note \thetermnote{} to entry}}{\noteoutro{note}\xspace}
561+
\newenvironment{defnote}{\addtocounter{termnote}{1}\noteintro{Note \thetermnote{} to entry}}{\noteoutro{note}\space}

0 commit comments

Comments
 (0)