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