|
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 |
|
|
170 | 170 |
|
171 | 171 | %%--------------------------------------------------
|
172 | 172 | %% Macros for funky text
|
173 |
| -\newcommand{\Cpp}{\texorpdfstring{C\kern-0.05em\protect\raisebox{.35ex}{\textsmaller[2]{+\kern-0.05em+}}}{C++}\xspace} |
174 |
| -\newcommand{\CppIII}{\Cpp 2003\xspace} |
175 |
| -\newcommand{\CppXI}{\Cpp 2011\xspace} |
176 |
| -\newcommand{\CppXIV}{\Cpp 2014\xspace} |
| 173 | +\newcommand{\Cpp}{\texorpdfstring{C\kern-0.05em\protect\raisebox{.35ex}{\textsmaller[2]{+\kern-0.05em+}}}{C++}} |
| 174 | +\newcommand{\CppIII}{\Cpp{} 2003} |
| 175 | +\newcommand{\CppXI}{\Cpp{} 2011} |
| 176 | +\newcommand{\CppXIV}{\Cpp{} 2014} |
177 | 177 | \newcommand{\opt}{{\ensuremath{_\mathit{opt}}}\xspace}
|
178 | 178 | \newcommand{\dcr}{-{-}}
|
179 | 179 | \newcommand{\bigoh}[1]{\ensuremath{\mathscr{O}(#1)}}
|
|
198 | 198 | %% Notes and examples
|
199 | 199 | \newcommand{\noteintro}[1]{[\,\textit{#1:}\space}
|
200 | 200 | \newcommand{\noteoutro}[1]{\textit{\,---\,end #1}\,]}
|
201 |
| -\newenvironment{note}[1][Note]{\noteintro{#1}}{\noteoutro{note}\xspace} |
202 |
| -\newenvironment{example}[1][Example]{\noteintro{#1}}{\noteoutro{example}\xspace} |
| 201 | +\newenvironment{note}[1][Note]{\noteintro{#1}}{\noteoutro{note}\space} |
| 202 | +\newenvironment{example}[1][Example]{\noteintro{#1}}{\noteoutro{example}\space} |
203 | 203 |
|
204 | 204 | %% Library function descriptions
|
205 |
| -\newcommand{\Fundescx}[1]{\textit{#1}\xspace} |
206 |
| -\newcommand{\Fundesc}[1]{\Fundescx{#1:}} |
| 205 | +\newcommand{\Fundescx}[1]{\textit{#1}} |
| 206 | +\newcommand{\Fundesc}[1]{\Fundescx{#1:}\xspace} |
207 | 207 | \newcommand{\required}{\Fundesc{Required behavior}}
|
208 | 208 | \newcommand{\requires}{\Fundesc{Requires}}
|
209 | 209 | \newcommand{\effects}{\Fundesc{Effects}}
|
|
279 | 279 | \newcommand{\commentellip}{\tcode{/* ...\ */}}
|
280 | 280 |
|
281 | 281 | %% Ranges
|
282 |
| -\newcommand{\Range}[4]{\tcode{#1#3,\penalty2000{} #4#2}\xspace} |
| 282 | +\newcommand{\Range}[4]{\tcode{#1#3,\penalty2000{} #4#2}} |
283 | 283 | \newcommand{\crange}[2]{\Range{[}{]}{#1}{#2}}
|
284 | 284 | \newcommand{\brange}[2]{\Range{(}{]}{#1}{#2}}
|
285 | 285 | \newcommand{\orange}[2]{\Range{(}{)}{#1}{#2}}
|
286 | 286 | \newcommand{\range}[2]{\Range{[}{)}{#1}{#2}}
|
287 | 287 |
|
288 | 288 | %% Change descriptions
|
289 |
| -\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\xspace} |
| 289 | +\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\space} |
290 | 290 | \newcommand{\change}{\diffdef{Change}}
|
291 | 291 | \newcommand{\rationale}{\diffdef{Rationale}}
|
292 | 292 | \newcommand{\effect}{\diffdef{Effect on original feature}}
|
|
295 | 295 |
|
296 | 296 | %% Miscellaneous
|
297 | 297 | \newcommand{\uniquens}{\placeholdernc{unique}}
|
298 |
| -\newcommand{\stage}[1]{\item{\textbf{Stage #1:}}\xspace} |
299 |
| -\newcommand{\doccite}[1]{\textit{#1}\xspace} |
| 298 | +\newcommand{\stage}[1]{\item{\textbf{Stage #1:}}} |
| 299 | +\newcommand{\doccite}[1]{\textit{#1}} |
300 | 300 | \newcommand{\cvqual}[1]{\textit{#1}}
|
301 | 301 | \newcommand{\cv}{\cvqual{cv}}
|
302 |
| -\renewcommand{\emph}[1]{\textit{#1}\xspace} |
303 |
| -\newcommand{\numconst}[1]{\textsl{#1}\xspace} |
304 |
| -\newcommand{\logop}[1]{{\footnotesize #1}\xspace} |
| 302 | +\renewcommand{\emph}[1]{\textit{#1}} |
| 303 | +\newcommand{\numconst}[1]{\textsl{#1}} |
| 304 | +\newcommand{\logop}[1]{{\footnotesize #1}} |
305 | 305 |
|
306 | 306 | %%--------------------------------------------------
|
307 | 307 | %% Environments for code listings.
|
|
389 | 389 | \newenvironment{bnfbase}
|
390 | 390 | {
|
391 | 391 | \newcommand{\nontermdef}[1]{{\BnfNontermshape##1\itcorr}\indexgrammar{\idxgram{##1}}\textnormal{:}}
|
392 |
| - \newcommand{\terminal}[1]{{\BnfTermshape ##1}\xspace} |
| 392 | + \newcommand{\terminal}[1]{{\BnfTermshape ##1}} |
393 | 393 | \newcommand{\descr}[1]{\textnormal{##1}}
|
394 | 394 | \newcommand{\bnfindentfirst}{\BnfIndent}
|
395 | 395 | \newcommand{\bnfindentinc}{\BnfInc}
|
|
0 commit comments