|
135 | 135 | \let\omname\mname%
|
136 | 136 | \let\mname\idxmname%
|
137 | 137 | \let\oCpp\Cpp%
|
138 |
| -\let\Cpp\idxCpp |
| 138 | +\let\Cpp\idxCpp% |
139 | 139 | \let\oBreakableUnderscore\BreakableUnderscore% See the "underscore" package.
|
140 | 140 | \let\BreakableUnderscore\textunderscore%
|
141 | 141 | \edef\x{#1}%
|
|
173 | 173 |
|
174 | 174 | % Code and definitions embedded in text.
|
175 | 175 | \newcommand{\tcode}[1]{\CodeStylex{#1}}
|
176 |
| -\newcommand{\techterm}[1]{\textit{#1}\xspace} |
177 |
| -\newcommand{\defnx}[2]{\indexdefn{#2}\textit{#1}\xspace} |
| 176 | +\newcommand{\techterm}[1]{\textit{#1}} |
| 177 | +\newcommand{\defnx}[2]{\indexdefn{#2}\textit{#1}} |
178 | 178 | \newcommand{\defn}[1]{\defnx{#1}{#1}}
|
179 |
| -\newcommand{\term}[1]{\textit{#1}\xspace} |
180 |
| -\newcommand{\grammarterm}[1]{\textit{#1}\xspace} |
| 179 | +\newcommand{\term}[1]{\textit{#1}} |
| 180 | +\newcommand{\grammarterm}[1]{\textit{#1}} |
181 | 181 | \newcommand{\grammartermnc}[1]{\textit{#1}\nocorr}
|
182 | 182 | \newcommand{\placeholder}[1]{\textit{#1}}
|
183 | 183 | \newcommand{\placeholdernc}[1]{\textit{#1\nocorr}}
|
|
188 | 188 |
|
189 | 189 | %%--------------------------------------------------
|
190 | 190 | %% Macros for funky text
|
191 |
| -\newcommand{\Cpp}{\texorpdfstring{C\kern-0.05em\protect\raisebox{.35ex}{\textsmaller[2]{+\kern-0.05em+}}}{C++}\xspace} |
192 |
| -\newcommand{\CppIII}{\Cpp 2003\xspace} |
193 |
| -\newcommand{\CppXI}{\Cpp 2011\xspace} |
194 |
| -\newcommand{\CppXIV}{\Cpp 2014\xspace} |
195 |
| -\newcommand{\CppXVII}{\Cpp 2017\xspace} |
| 191 | +\newcommand{\Cpp}{\texorpdfstring{C\kern-0.05em\protect\raisebox{.35ex}{\textsmaller[2]{+\kern-0.05em+}}}{C++}} |
| 192 | +\newcommand{\CppIII}{\Cpp{} 2003} |
| 193 | +\newcommand{\CppXI}{\Cpp{} 2011} |
| 194 | +\newcommand{\CppXIV}{\Cpp{} 2014} |
| 195 | +\newcommand{\CppXVII}{\Cpp{} 2017} |
196 | 196 | \newcommand{\opt}{{\ensuremath{_\mathit{opt}}}\xspace}
|
197 | 197 | \newcommand{\dcr}{-{-}}
|
198 | 198 | \newcommand{\bigoh}[1]{\ensuremath{\mathscr{O}(#1)}}
|
|
217 | 217 | %% Notes and examples
|
218 | 218 | \newcommand{\noteintro}[1]{[\,\textit{#1:}\space}
|
219 | 219 | \newcommand{\noteoutro}[1]{\textit{\,---\,end #1}\,]}
|
220 |
| -\newenvironment{note}[1][Note]{\noteintro{#1}}{\noteoutro{note}\xspace} |
221 |
| -\newenvironment{example}[1][Example]{\noteintro{#1}}{\noteoutro{example}\xspace} |
| 220 | +\newenvironment{note}[1][Note]{\noteintro{#1}}{\noteoutro{note}\space} |
| 221 | +\newenvironment{example}[1][Example]{\noteintro{#1}}{\noteoutro{example}\space} |
222 | 222 |
|
223 | 223 | %% Library function descriptions
|
224 |
| -\newcommand{\Fundescx}[1]{\textit{#1}\xspace} |
225 |
| -\newcommand{\Fundesc}[1]{\Fundescx{#1:}} |
| 224 | +\newcommand{\Fundescx}[1]{\textit{#1}} |
| 225 | +\newcommand{\Fundesc}[1]{\Fundescx{#1:}\xspace} |
226 | 226 | \newcommand{\required}{\Fundesc{Required behavior}}
|
227 | 227 | \newcommand{\requires}{\Fundesc{Requires}}
|
228 | 228 | \newcommand{\effects}{\Fundesc{Effects}}
|
|
301 | 301 | \newcommand{\commentellip}{\tcode{/* ...\ */}}
|
302 | 302 |
|
303 | 303 | %% Ranges
|
304 |
| -\newcommand{\Range}[4]{\tcode{#1#3,\penalty2000{} #4#2}\xspace} |
| 304 | +\newcommand{\Range}[4]{\tcode{#1#3,\penalty2000{} #4#2}} |
305 | 305 | \newcommand{\crange}[2]{\Range{[}{]}{#1}{#2}}
|
306 | 306 | \newcommand{\brange}[2]{\Range{(}{]}{#1}{#2}}
|
307 | 307 | \newcommand{\orange}[2]{\Range{(}{)}{#1}{#2}}
|
308 | 308 | \newcommand{\range}[2]{\Range{[}{)}{#1}{#2}}
|
309 | 309 |
|
310 | 310 | %% Change descriptions
|
311 |
| -\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\xspace} |
| 311 | +\newcommand{\diffdef}[1]{\hfill\break\textbf{#1:}\space} |
312 | 312 | \newcommand{\change}{\diffdef{Change}}
|
313 | 313 | \newcommand{\rationale}{\diffdef{Rationale}}
|
314 | 314 | \newcommand{\effect}{\diffdef{Effect on original feature}}
|
|
317 | 317 |
|
318 | 318 | %% Miscellaneous
|
319 | 319 | \newcommand{\uniquens}{\placeholdernc{unique}}
|
320 |
| -\newcommand{\stage}[1]{\item{\textbf{Stage #1:}}\xspace} |
321 |
| -\newcommand{\doccite}[1]{\textit{#1}\xspace} |
| 320 | +\newcommand{\stage}[1]{\item{\textbf{Stage #1:}}} |
| 321 | +\newcommand{\doccite}[1]{\textit{#1}} |
322 | 322 | \newcommand{\cvqual}[1]{\textit{#1}}
|
323 | 323 | \newcommand{\cv}{\cvqual{cv}}
|
324 |
| -\renewcommand{\emph}[1]{\textit{#1}\xspace} |
325 |
| -\newcommand{\numconst}[1]{\textsl{#1}\xspace} |
326 |
| -\newcommand{\logop}[1]{{\footnotesize #1}\xspace} |
| 324 | +\renewcommand{\emph}[1]{\textit{#1}} |
| 325 | +\newcommand{\numconst}[1]{\textsl{#1}} |
| 326 | +\newcommand{\logop}[1]{{\footnotesize #1}} |
327 | 327 |
|
328 | 328 | %%--------------------------------------------------
|
329 | 329 | %% Environments for code listings.
|
|
411 | 411 | \newenvironment{bnfbase}
|
412 | 412 | {
|
413 | 413 | \newcommand{\nontermdef}[1]{{\BnfNontermshape##1\itcorr}\indexgrammar{\idxgram{##1}}\textnormal{:}}
|
414 |
| - \newcommand{\terminal}[1]{{\BnfTermshape ##1}\xspace} |
| 414 | + \newcommand{\terminal}[1]{{\BnfTermshape ##1}} |
415 | 415 | \newcommand{\descr}[1]{\textnormal{##1}}
|
416 | 416 | \newcommand{\bnfindentfirst}{\BnfIndent}
|
417 | 417 | \newcommand{\bnfindentinc}{\BnfInc}
|
|
0 commit comments