|
126 | 126 | \let\omname\mname% |
127 | 127 | \let\mname\idxmname% |
128 | 128 | \let\oCpp\Cpp% |
129 | | -\let\Cpp\idxCpp |
| 129 | +\let\Cpp\idxCpp% |
130 | 130 | \let\oBreakableUnderscore\BreakableUnderscore% See the "underscore" package. |
131 | 131 | \let\BreakableUnderscore\textunderscore% |
132 | 132 | \edef\x{#1}% |
|
164 | 164 |
|
165 | 165 | % Code and definitions embedded in text. |
166 | 166 | \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}} |
169 | 169 | \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}} |
172 | 172 | \newcommand{\grammartermnc}[1]{\textit{#1}\nocorr} |
173 | 173 | \newcommand{\placeholder}[1]{\textit{#1}} |
174 | 174 | \newcommand{\placeholdernc}[1]{\textit{#1\nocorr}} |
|
179 | 179 |
|
180 | 180 | %%-------------------------------------------------- |
181 | 181 | %% 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} |
186 | 186 | \newcommand{\opt}{{\ensuremath{_\mathit{opt}}}\xspace} |
187 | 187 | \newcommand{\dcr}{-{-}} |
188 | 188 | \newcommand{\bigoh}[1]{\ensuremath{\mathscr{O}(#1)}} |
|
207 | 207 | %% Notes and examples |
208 | 208 | \newcommand{\noteintro}[1]{[\,\textit{#1:}\space} |
209 | 209 | \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} |
212 | 212 |
|
213 | 213 | %% 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} |
216 | 216 | \newcommand{\required}{\Fundesc{Required behavior}} |
217 | 217 | \newcommand{\requires}{\Fundesc{Requires}} |
218 | 218 | \newcommand{\effects}{\Fundesc{Effects}} |
|
288 | 288 | \newcommand{\commentellip}{\tcode{/* ...\ */}} |
289 | 289 |
|
290 | 290 | %% Ranges |
291 | | -\newcommand{\Range}[4]{\tcode{#1#3,\penalty2000{} #4#2}\xspace} |
| 291 | +\newcommand{\Range}[4]{\tcode{#1#3,\penalty2000{} #4#2}} |
292 | 292 | \newcommand{\crange}[2]{\Range{[}{]}{#1}{#2}} |
293 | 293 | \newcommand{\brange}[2]{\Range{(}{]}{#1}{#2}} |
294 | 294 | \newcommand{\orange}[2]{\Range{(}{)}{#1}{#2}} |
295 | 295 | \newcommand{\range}[2]{\Range{[}{)}{#1}{#2}} |
296 | 296 |
|
297 | 297 | %% Change descriptions |
298 | | -\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\xspace} |
| 298 | +\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\space} |
299 | 299 | \newcommand{\change}{\diffdef{Change}} |
300 | 300 | \newcommand{\rationale}{\diffdef{Rationale}} |
301 | 301 | \newcommand{\effect}{\diffdef{Effect on original feature}} |
|
304 | 304 |
|
305 | 305 | %% Miscellaneous |
306 | 306 | \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}} |
309 | 309 | \newcommand{\cvqual}[1]{\textit{#1}} |
310 | 310 | \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}} |
314 | 314 |
|
315 | 315 | %%-------------------------------------------------- |
316 | 316 | %% Environments for code listings. |
|
398 | 398 | \newenvironment{bnfbase} |
399 | 399 | { |
400 | 400 | \newcommand{\nontermdef}[1]{{\BnfNontermshape##1\itcorr}\indexgrammar{\idxgram{##1}}\textnormal{:}} |
401 | | - \newcommand{\terminal}[1]{{\BnfTermshape ##1}\xspace} |
| 401 | + \newcommand{\terminal}[1]{{\BnfTermshape ##1}} |
402 | 402 | \newcommand{\descr}[1]{\textnormal{##1}} |
403 | 403 | \newcommand{\bnfindentfirst}{\BnfIndent} |
404 | 404 | \newcommand{\bnfindentinc}{\BnfInc} |
|
0 commit comments