|
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{\placeholder}[1]{\textit{#1}}
|
173 | 173 | \newcommand{\placeholdernc}[1]{\textit{#1\nocorr}}
|
174 | 174 |
|
|
178 | 178 |
|
179 | 179 | %%--------------------------------------------------
|
180 | 180 | %% Macros for funky text
|
181 |
| -\newcommand{\Cpp}{\texorpdfstring{C\kern-0.05em\protect\raisebox{.35ex}{\textsmaller[2]{+\kern-0.05em+}}}{C++}\xspace} |
182 |
| -\newcommand{\CppIII}{\Cpp 2003\xspace} |
183 |
| -\newcommand{\CppXI}{\Cpp 2011\xspace} |
184 |
| -\newcommand{\CppXIV}{\Cpp 2014\xspace} |
| 181 | +\newcommand{\Cpp}{\texorpdfstring{C\kern-0.05em\protect\raisebox{.35ex}{\textsmaller[2]{+\kern-0.05em+}}}{C++}} |
| 182 | +\newcommand{\CppIII}{\Cpp{} 2003} |
| 183 | +\newcommand{\CppXI}{\Cpp{} 2011} |
| 184 | +\newcommand{\CppXIV}{\Cpp{} 2014} |
185 | 185 | \newcommand{\opt}{{\ensuremath{_\mathit{opt}}}\xspace}
|
186 | 186 | \newcommand{\dcr}{-{-}}
|
187 | 187 | \newcommand{\bigoh}[1]{\ensuremath{\mathscr{O}(#1)}}
|
|
206 | 206 | %% Notes and examples
|
207 | 207 | \newcommand{\noteintro}[1]{[\,\textit{#1:}\space}
|
208 | 208 | \newcommand{\noteoutro}[1]{\textit{\,---\,end #1}\,]}
|
209 |
| -\newenvironment{note}[1][Note]{\noteintro{#1}}{\noteoutro{note}\xspace} |
210 |
| -\newenvironment{example}[1][Example]{\noteintro{#1}}{\noteoutro{example}\xspace} |
| 209 | +\newenvironment{note}[1][Note]{\noteintro{#1}}{\noteoutro{note}\space} |
| 210 | +\newenvironment{example}[1][Example]{\noteintro{#1}}{\noteoutro{example}\space} |
211 | 211 |
|
212 | 212 | %% Library function descriptions
|
213 |
| -\newcommand{\Fundescx}[1]{\textit{#1}\xspace} |
214 |
| -\newcommand{\Fundesc}[1]{\Fundescx{#1:}} |
| 213 | +\newcommand{\Fundescx}[1]{\textit{#1}} |
| 214 | +\newcommand{\Fundesc}[1]{\Fundescx{#1:}\xspace} |
215 | 215 | \newcommand{\required}{\Fundesc{Required behavior}}
|
216 | 216 | \newcommand{\requires}{\Fundesc{Requires}}
|
217 | 217 | \newcommand{\effects}{\Fundesc{Effects}}
|
|
287 | 287 | \newcommand{\commentellip}{\tcode{/* ...\ */}}
|
288 | 288 |
|
289 | 289 | %% Ranges
|
290 |
| -\newcommand{\Range}[4]{\tcode{#1#3,\penalty2000{} #4#2}\xspace} |
| 290 | +\newcommand{\Range}[4]{\tcode{#1#3,\penalty2000{} #4#2}} |
291 | 291 | \newcommand{\crange}[2]{\Range{[}{]}{#1}{#2}}
|
292 | 292 | \newcommand{\brange}[2]{\Range{(}{]}{#1}{#2}}
|
293 | 293 | \newcommand{\orange}[2]{\Range{(}{)}{#1}{#2}}
|
294 | 294 | \newcommand{\range}[2]{\Range{[}{)}{#1}{#2}}
|
295 | 295 |
|
296 | 296 | %% Change descriptions
|
297 |
| -\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\xspace} |
| 297 | +\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\space} |
298 | 298 | \newcommand{\change}{\diffdef{Change}}
|
299 | 299 | \newcommand{\rationale}{\diffdef{Rationale}}
|
300 | 300 | \newcommand{\effect}{\diffdef{Effect on original feature}}
|
|
303 | 303 |
|
304 | 304 | %% Miscellaneous
|
305 | 305 | \newcommand{\uniquens}{\placeholdernc{unique}}
|
306 |
| -\newcommand{\stage}[1]{\item{\textbf{Stage #1:}}\xspace} |
307 |
| -\newcommand{\doccite}[1]{\textit{#1}\xspace} |
| 306 | +\newcommand{\stage}[1]{\item{\textbf{Stage #1:}}} |
| 307 | +\newcommand{\doccite}[1]{\textit{#1}} |
308 | 308 | \newcommand{\cvqual}[1]{\textit{#1}}
|
309 | 309 | \newcommand{\cv}{\cvqual{cv}}
|
310 |
| -\renewcommand{\emph}[1]{\textit{#1}\xspace} |
311 |
| -\newcommand{\numconst}[1]{\textsl{#1}\xspace} |
312 |
| -\newcommand{\logop}[1]{{\footnotesize #1}\xspace} |
| 310 | +\renewcommand{\emph}[1]{\textit{#1}} |
| 311 | +\newcommand{\numconst}[1]{\textsl{#1}} |
| 312 | +\newcommand{\logop}[1]{{\footnotesize #1}} |
313 | 313 |
|
314 | 314 | %%--------------------------------------------------
|
315 | 315 | %% Environments for code listings.
|
|
397 | 397 | \newenvironment{bnfbase}
|
398 | 398 | {
|
399 | 399 | \newcommand{\nontermdef}[1]{{\BnfNontermshape##1\itcorr}\indexgrammar{\idxgram{##1}}\textnormal{:}}
|
400 |
| - \newcommand{\terminal}[1]{{\BnfTermshape ##1}\xspace} |
| 400 | + \newcommand{\terminal}[1]{{\BnfTermshape ##1}} |
401 | 401 | \newcommand{\descr}[1]{\textnormal{##1}}
|
402 | 402 | \newcommand{\bnfindentfirst}{\BnfIndent}
|
403 | 403 | \newcommand{\bnfindentinc}{\BnfInc}
|
|
0 commit comments