|
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} |
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} |
187 | 187 | \newcommand{\opt}{{\ensuremath{_\mathit{opt}}}\xspace}
|
188 | 188 | \newcommand{\dcr}{-{-}}
|
189 | 189 | \newcommand{\bigoh}[1]{\ensuremath{\mathscr{O}(#1)}}
|
|
208 | 208 | %% Notes and examples
|
209 | 209 | \newcommand{\noteintro}[1]{[\,\textit{#1:}\space}
|
210 | 210 | \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} |
213 | 213 |
|
214 | 214 | %% 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} |
217 | 217 | \newcommand{\required}{\Fundesc{Required behavior}}
|
218 | 218 | \newcommand{\requires}{\Fundesc{Requires}}
|
219 | 219 | \newcommand{\effects}{\Fundesc{Effects}}
|
|
289 | 289 | \newcommand{\commentellip}{\tcode{/* ...\ */}}
|
290 | 290 |
|
291 | 291 | %% Ranges
|
292 |
| -\newcommand{\Range}[4]{\tcode{#1#3,\penalty2000{} #4#2}\xspace} |
| 292 | +\newcommand{\Range}[4]{\tcode{#1#3,\penalty2000{} #4#2}} |
293 | 293 | \newcommand{\crange}[2]{\Range{[}{]}{#1}{#2}}
|
294 | 294 | \newcommand{\brange}[2]{\Range{(}{]}{#1}{#2}}
|
295 | 295 | \newcommand{\orange}[2]{\Range{(}{)}{#1}{#2}}
|
296 | 296 | \newcommand{\range}[2]{\Range{[}{)}{#1}{#2}}
|
297 | 297 |
|
298 | 298 | %% Change descriptions
|
299 |
| -\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\xspace} |
| 299 | +\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\space} |
300 | 300 | \newcommand{\change}{\diffdef{Change}}
|
301 | 301 | \newcommand{\rationale}{\diffdef{Rationale}}
|
302 | 302 | \newcommand{\effect}{\diffdef{Effect on original feature}}
|
|
305 | 305 |
|
306 | 306 | %% Miscellaneous
|
307 | 307 | \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}} |
310 | 310 | \newcommand{\cvqual}[1]{\textit{#1}}
|
311 | 311 | \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}} |
315 | 315 |
|
316 | 316 | %%--------------------------------------------------
|
317 | 317 | %% Environments for code listings.
|
|
399 | 399 | \newenvironment{bnfbase}
|
400 | 400 | {
|
401 | 401 | \newcommand{\nontermdef}[1]{{\BnfNontermshape##1\itcorr}\indexgrammar{\idxgram{##1}}\textnormal{:}}
|
402 |
| - \newcommand{\terminal}[1]{{\BnfTermshape ##1}\xspace} |
| 402 | + \newcommand{\terminal}[1]{{\BnfTermshape ##1}} |
403 | 403 | \newcommand{\descr}[1]{\textnormal{##1}}
|
404 | 404 | \newcommand{\bnfindentfirst}{\BnfIndent}
|
405 | 405 | \newcommand{\bnfindentinc}{\BnfInc}
|
|
0 commit comments