|
118 | 118 | \let\omname\mname%
|
119 | 119 | \let\mname\idxmname%
|
120 | 120 | \let\oCpp\Cpp%
|
121 |
| -\let\Cpp\idxCpp |
| 121 | +\let\Cpp\idxCpp% |
122 | 122 | \let\oBreakableUnderscore\BreakableUnderscore% See the "underscore" package.
|
123 | 123 | \let\BreakableUnderscore\textunderscore%
|
124 | 124 | \edef\x{#1}%
|
|
156 | 156 |
|
157 | 157 | % Code and definitions embedded in text.
|
158 | 158 | \newcommand{\tcode}[1]{\CodeStylex{#1}}
|
159 |
| -\newcommand{\techterm}[1]{\textit{#1}\xspace} |
160 |
| -\newcommand{\defnx}[2]{\indexdefn{#2}\textit{#1}\xspace} |
| 159 | +\newcommand{\techterm}[1]{\textit{#1}} |
| 160 | +\newcommand{\defnx}[2]{\indexdefn{#2}\textit{#1}} |
161 | 161 | \newcommand{\defn}[1]{\defnx{#1}{#1}}
|
162 |
| -\newcommand{\term}[1]{\textit{#1}\xspace} |
163 |
| -\newcommand{\grammarterm}[1]{\textit{#1}\xspace} |
| 162 | +\newcommand{\term}[1]{\textit{#1}} |
| 163 | +\newcommand{\grammarterm}[1]{\textit{#1}} |
164 | 164 | \newcommand{\placeholder}[1]{\textit{#1}}
|
165 | 165 | \newcommand{\placeholdernc}[1]{\textit{#1\nocorr}}
|
166 | 166 |
|
|
172 | 172 |
|
173 | 173 | %%--------------------------------------------------
|
174 | 174 | %% Macros for funky text
|
175 |
| -\newcommand{\Cpp}{\texorpdfstring{C\kern-0.05em\protect\raisebox{.35ex}{\textsmaller[2]{+\kern-0.05em+}}}{C++}\xspace} |
176 |
| -\newcommand{\CppIII}{\Cpp 2003\xspace} |
177 |
| -\newcommand{\CppXI}{\Cpp 2011\xspace} |
178 |
| -\newcommand{\CppXIV}{\Cpp 2014\xspace} |
| 175 | +\newcommand{\Cpp}{\texorpdfstring{C\kern-0.05em\protect\raisebox{.35ex}{\textsmaller[2]{+\kern-0.05em+}}}{C++}} |
| 176 | +\newcommand{\CppIII}{\Cpp{} 2003} |
| 177 | +\newcommand{\CppXI}{\Cpp{} 2011} |
| 178 | +\newcommand{\CppXIV}{\Cpp{} 2014} |
179 | 179 | \newcommand{\opt}{{\ensuremath{_\mathit{opt}}}\xspace}
|
180 | 180 | \newcommand{\dcr}{-{-}}
|
181 | 181 | \newcommand{\bigoh}[1]{\ensuremath{\mathscr{O}(#1)}}
|
|
200 | 200 | %% Notes and examples
|
201 | 201 | \newcommand{\noteintro}[1]{[\,\textit{#1:}\space}
|
202 | 202 | \newcommand{\noteoutro}[1]{\textit{\,---\,end #1}\,]}
|
203 |
| -\newenvironment{note}[1][Note]{\noteintro{#1}}{\noteoutro{note}\xspace} |
204 |
| -\newenvironment{example}[1][Example]{\noteintro{#1}}{\noteoutro{example}\xspace} |
| 203 | +\newenvironment{note}[1][Note]{\noteintro{#1}}{\noteoutro{note}\space} |
| 204 | +\newenvironment{example}[1][Example]{\noteintro{#1}}{\noteoutro{example}\space} |
205 | 205 |
|
206 | 206 | %% Library function descriptions
|
207 |
| -\newcommand{\Fundescx}[1]{\textit{#1}\xspace} |
208 |
| -\newcommand{\Fundesc}[1]{\Fundescx{#1:}} |
| 207 | +\newcommand{\Fundescx}[1]{\textit{#1}} |
| 208 | +\newcommand{\Fundesc}[1]{\Fundescx{#1:}\xspace} |
209 | 209 | \newcommand{\required}{\Fundesc{Required behavior}}
|
210 | 210 | \newcommand{\requires}{\Fundesc{Requires}}
|
211 | 211 | \newcommand{\effects}{\Fundesc{Effects}}
|
|
281 | 281 | \newcommand{\commentellip}{\tcode{/* ...\ */}}
|
282 | 282 |
|
283 | 283 | %% Ranges
|
284 |
| -\newcommand{\Range}[4]{\tcode{#1#3,\penalty2000{} #4#2}\xspace} |
| 284 | +\newcommand{\Range}[4]{\tcode{#1#3,\penalty2000{} #4#2}} |
285 | 285 | \newcommand{\crange}[2]{\Range{[}{]}{#1}{#2}}
|
286 | 286 | \newcommand{\brange}[2]{\Range{(}{]}{#1}{#2}}
|
287 | 287 | \newcommand{\orange}[2]{\Range{(}{)}{#1}{#2}}
|
288 | 288 | \newcommand{\range}[2]{\Range{[}{)}{#1}{#2}}
|
289 | 289 |
|
290 | 290 | %% Change descriptions
|
291 |
| -\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\xspace} |
| 291 | +\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\space} |
292 | 292 | \newcommand{\change}{\diffdef{Change}}
|
293 | 293 | \newcommand{\rationale}{\diffdef{Rationale}}
|
294 | 294 | \newcommand{\effect}{\diffdef{Effect on original feature}}
|
|
297 | 297 |
|
298 | 298 | %% Miscellaneous
|
299 | 299 | \newcommand{\uniquens}{\placeholdernc{unique}}
|
300 |
| -\newcommand{\stage}[1]{\item{\textbf{Stage #1:}}\xspace} |
301 |
| -\newcommand{\doccite}[1]{\textit{#1}\xspace} |
| 300 | +\newcommand{\stage}[1]{\item{\textbf{Stage #1:}}} |
| 301 | +\newcommand{\doccite}[1]{\textit{#1}} |
302 | 302 | \newcommand{\cvqual}[1]{\textit{#1}}
|
303 | 303 | \newcommand{\cv}{\cvqual{cv}}
|
304 |
| -\renewcommand{\emph}[1]{\textit{#1}\xspace} |
305 |
| -\newcommand{\numconst}[1]{\textsl{#1}\xspace} |
306 |
| -\newcommand{\logop}[1]{{\footnotesize #1}\xspace} |
| 304 | +\renewcommand{\emph}[1]{\textit{#1}} |
| 305 | +\newcommand{\numconst}[1]{\textsl{#1}} |
| 306 | +\newcommand{\logop}[1]{{\footnotesize #1}} |
307 | 307 |
|
308 | 308 | %%--------------------------------------------------
|
309 | 309 | %% Environments for code listings.
|
|
391 | 391 | \newenvironment{bnfbase}
|
392 | 392 | {
|
393 | 393 | \newcommand{\nontermdef}[1]{{\BnfNontermshape##1\itcorr}\indexgrammar{\idxgram{##1}}\textnormal{:}}
|
394 |
| - \newcommand{\terminal}[1]{{\BnfTermshape ##1}\xspace} |
| 394 | + \newcommand{\terminal}[1]{{\BnfTermshape ##1}} |
395 | 395 | \newcommand{\descr}[1]{\textnormal{##1}}
|
396 | 396 | \newcommand{\bnfindentfirst}{\BnfIndent}
|
397 | 397 | \newcommand{\bnfindentinc}{\BnfInc}
|
|
0 commit comments