| 1 |
%% |
| 2 |
%% This is file `ltxcmds.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% ltxcmds.dtx (with options: `package') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% Project: ltxcmds |
| 12 |
%% Version: 2023-12-04 v1.26 |
| 13 |
%% |
| 14 |
%% Copyright (C) |
| 15 |
%% 2009-2011 Heiko Oberdiek |
| 16 |
%% 2016-2023 Oberdiek Package Support Group |
| 17 |
%% |
| 18 |
%% This work may be distributed and/or modified under the |
| 19 |
%% conditions of the LaTeX Project Public License, either |
| 20 |
%% version 1.3c of this license or (at your option) any later |
| 21 |
%% version. This version of this license is in |
| 22 |
%% https://www.latex-project.org/lppl/lppl-1-3c.txt |
| 23 |
%% and the latest version of this license is in |
| 24 |
%% https://www.latex-project.org/lppl.txt |
| 25 |
%% and version 1.3 or later is part of all distributions of |
| 26 |
%% LaTeX version 2005/12/01 or later. |
| 27 |
%% |
| 28 |
%% This work has the LPPL maintenance status "maintained". |
| 29 |
%% |
| 30 |
%% The Current Maintainers of this work are |
| 31 |
%% Heiko Oberdiek and the Oberdiek Package Support Group |
| 32 |
%% https://github.com/ho-tex/ltxcmds/issues |
| 33 |
%% |
| 34 |
%% The Base Interpreter refers to any `TeX-Format', |
| 35 |
%% because some files are installed in TDS:tex/generic//. |
| 36 |
%% |
| 37 |
%% This work consists of the main source file ltxcmds.dtx |
| 38 |
%% and the derived files |
| 39 |
%% ltxcmds.sty, ltxcmds.pdf, ltxcmds.ins, ltxcmds.drv, |
| 40 |
%% ltxcmds-test1.tex, ltxcmds-test-gobble.tex, |
| 41 |
%% ltxcmds-test-ifempty.tex, ltxcmds-test-zapspace.tex, |
| 42 |
%% ltxcmds-test-ifboxempty.tex, ltxcmds-test-nextchar.tex, |
| 43 |
%% ltxcmds-test-carcdr.tex. |
| 44 |
%% |
| 45 |
\begingroup\catcode61\catcode48\catcode32=10\relax% |
| 46 |
\catcode13=5 % ^^M |
| 47 |
\endlinechar=13 % |
| 48 |
\catcode35=6 % # |
| 49 |
\catcode39=12 % ' |
| 50 |
\catcode44=12 % , |
| 51 |
\catcode45=12 % - |
| 52 |
\catcode46=12 % . |
| 53 |
\catcode58=12 % : |
| 54 |
\catcode64=11 % @ |
| 55 |
\catcode123=1 % { |
| 56 |
\catcode125=2 % } |
| 57 |
\expandafter\let\expandafter\x\csname [email protected]\endcsname |
| 58 |
\ifx\x\relax % plain-TeX, first loading |
| 59 |
\else |
| 60 |
\def\empty{}% |
| 61 |
\ifx\x\empty % LaTeX, first loading, |
| 62 |
% variable is initialized, but \ProvidesPackage not yet seen |
| 63 |
\else |
| 64 |
\expandafter\ifx\csname PackageInfo\endcsname\relax |
| 65 |
\def\x#1#2{% |
| 66 |
\immediate\write-1{Package #1 Info: #2.}% |
| 67 |
}% |
| 68 |
\else |
| 69 |
\def\x#1#2{\PackageInfo{#1}{#2, stopped}}% |
| 70 |
\fi |
| 71 |
\x{ltxcmds}{The package is already loaded}% |
| 72 |
\aftergroup\endinput |
| 73 |
\fi |
| 74 |
\fi |
| 75 |
\endgroup% |
| 76 |
\begingroup\catcode61\catcode48\catcode32=10\relax% |
| 77 |
\catcode13=5 % ^^M |
| 78 |
\endlinechar=13 % |
| 79 |
\catcode35=6 % # |
| 80 |
\catcode39=12 % ' |
| 81 |
\catcode40=12 % ( |
| 82 |
\catcode41=12 % ) |
| 83 |
\catcode44=12 % , |
| 84 |
\catcode45=12 % - |
| 85 |
\catcode46=12 % . |
| 86 |
\catcode47=12 % / |
| 87 |
\catcode58=12 % : |
| 88 |
\catcode64=11 % @ |
| 89 |
\catcode91=12 % [ |
| 90 |
\catcode93=12 % ] |
| 91 |
\catcode123=1 % { |
| 92 |
\catcode125=2 % } |
| 93 |
\expandafter\ifx\csname ProvidesPackage\endcsname\relax |
| 94 |
\def\x#1#2#3[#4]{\endgroup |
| 95 |
\immediate\write-1{Package: #3 #4}% |
| 96 |
\xdef#1{#4}% |
| 97 |
}% |
| 98 |
\else |
| 99 |
\def\x#1#2[#3]{\endgroup |
| 100 |
#2[{#3}]% |
| 101 |
\ifx#1\@undefined |
| 102 |
\xdef#1{#3}% |
| 103 |
\fi |
| 104 |
\ifx#1\relax |
| 105 |
\xdef#1{#3}% |
| 106 |
\fi |
| 107 |
}% |
| 108 |
\fi |
| 109 |
\expandafter\x\csname [email protected]\endcsname |
| 110 |
\ProvidesPackage{ltxcmds}% |
| 111 |
[2023-12-04 v1.26 LaTeX kernel commands for general use (HO)]% |
| 112 |
\begingroup\catcode61\catcode48\catcode32=10\relax% |
| 113 |
\catcode13=5 % ^^M |
| 114 |
\endlinechar=13 % |
| 115 |
\catcode123=1 % { |
| 116 |
\catcode125=2 % } |
| 117 |
\catcode64=11 % @ |
| 118 |
\def\x{\endgroup |
| 119 |
\expandafter\edef\csname LTXcmds@AtEnd\endcsname{% |
| 120 |
\endlinechar=\the\endlinechar\relax |
| 121 |
\catcode13=\the\catcode13\relax |
| 122 |
\catcode32=\the\catcode32\relax |
| 123 |
\catcode35=\the\catcode35\relax |
| 124 |
\catcode61=\the\catcode61\relax |
| 125 |
\catcode64=\the\catcode64\relax |
| 126 |
\catcode123=\the\catcode123\relax |
| 127 |
\catcode125=\the\catcode125\relax |
| 128 |
}% |
| 129 |
}% |
| 130 |
\x\catcode61\catcode48\catcode32=10\relax% |
| 131 |
\catcode13=5 % ^^M |
| 132 |
\endlinechar=13 % |
| 133 |
\catcode35=6 % # |
| 134 |
\catcode64=11 % @ |
| 135 |
\catcode123=1 % { |
| 136 |
\catcode125=2 % } |
| 137 |
\def\TMP@EnsureCode#1#2{% |
| 138 |
\edef\LTXcmds@AtEnd{% |
| 139 |
\LTXcmds@AtEnd |
| 140 |
\catcode#1=\the\catcode#1\relax |
| 141 |
}% |
| 142 |
\catcode#1=#2\relax |
| 143 |
} |
| 144 |
\TMP@EnsureCode{36}{3}% $ |
| 145 |
\TMP@EnsureCode{38}{4}% & |
| 146 |
\TMP@EnsureCode{40}{12}% ( |
| 147 |
\TMP@EnsureCode{41}{12}% ) |
| 148 |
\TMP@EnsureCode{45}{12}% - |
| 149 |
\TMP@EnsureCode{46}{12}% . |
| 150 |
\TMP@EnsureCode{47}{12}% / |
| 151 |
\TMP@EnsureCode{60}{12}% < |
| 152 |
\TMP@EnsureCode{62}{12}% > |
| 153 |
\TMP@EnsureCode{91}{12}% [ |
| 154 |
\TMP@EnsureCode{96}{12}% ` |
| 155 |
\TMP@EnsureCode{93}{12}% ] |
| 156 |
\TMP@EnsureCode{94}{12}% ^ (superscript) (!) |
| 157 |
\TMP@EnsureCode{124}{12}% | |
| 158 |
\edef\LTXcmds@AtEnd{\LTXcmds@AtEnd\noexpand\endinput} |
| 159 |
\chardef\ltx@zero=0 % |
| 160 |
\chardef\ltx@one=1 % |
| 161 |
\chardef\ltx@two=2 % |
| 162 |
\chardef\ltx@active=13 % |
| 163 |
\chardef\ltx@cclv=255 % |
| 164 |
\def\ltx@minusone{% |
| 165 |
-\ltx@one |
| 166 |
} |
| 167 |
\toksdef\ltx@LocToksA=0 % |
| 168 |
\toksdef\ltx@LocToksB=2 % |
| 169 |
\toksdef\ltx@LocToksC=4 % |
| 170 |
\toksdef\ltx@LocToksD=6 % |
| 171 |
\toksdef\ltx@LocToksE=8 % |
| 172 |
\toksdef\ltx@GlobToksA=1 % |
| 173 |
\toksdef\ltx@GlobToksB=3 % |
| 174 |
\toksdef\ltx@GlobToksC=5 % |
| 175 |
\toksdef\ltx@GlobToksD=7 % |
| 176 |
\toksdef\ltx@GlobToksE=9 % |
| 177 |
\dimendef\ltx@LocDimenA=0 % |
| 178 |
\dimendef\ltx@LocDimenB=2 % |
| 179 |
\dimendef\ltx@LocDimenC=4 % |
| 180 |
\dimendef\ltx@LocDimenD=6 % |
| 181 |
\dimendef\ltx@LocDimenE=8 % |
| 182 |
\dimendef\ltx@GlobDimenA=1 % |
| 183 |
\dimendef\ltx@GlobDimenB=3 % |
| 184 |
\dimendef\ltx@GlobDimenC=5 % |
| 185 |
\dimendef\ltx@GlobDimenD=7 % |
| 186 |
\dimendef\ltx@GlobDimenE=9 % |
| 187 |
\skipdef\ltx@LocSkipA=0 % |
| 188 |
\skipdef\ltx@LocSkipB=2 % |
| 189 |
\skipdef\ltx@LocSkipC=4 % |
| 190 |
\skipdef\ltx@LocSkipD=6 % |
| 191 |
\skipdef\ltx@LocSkipE=8 % |
| 192 |
\skipdef\ltx@GlobSkipA=1 % |
| 193 |
\skipdef\ltx@GlobSkipB=3 % |
| 194 |
\skipdef\ltx@GlobSkipC=5 % |
| 195 |
\skipdef\ltx@GlobSkipD=7 % |
| 196 |
\skipdef\ltx@GlobSkipE=9 % |
| 197 |
\long\def\ltx@gobble#1{} |
| 198 |
\long\def\ltx@gobbletwo#1#2{} |
| 199 |
\long\def\ltx@gobblethree#1#2#3{} |
| 200 |
\long\def\ltx@gobblefour#1#2#3#4{} |
| 201 |
\def\ltx@GobbleNum#1{% |
| 202 |
\romannumeral |
| 203 |
\csname ltx@zero% |
| 204 |
\expandafter\LTXcmds@GobbleNum |
| 205 |
\romannumeral\LTXcmds@num{#1}000{m\endcsname}% |
| 206 |
} |
| 207 |
\def\LTXcmds@GobbleNum#1{% |
| 208 |
\csname LTXcmds@G#1\LTXcmds@GobbleNum |
| 209 |
} |
| 210 |
\long\def\LTXcmds@Gm#1{% |
| 211 |
\endcsname |
| 212 |
} |
| 213 |
\long\def\ltx@firstofone#1{#1} |
| 214 |
\long\def\ltx@firstoftwo#1#2{#1} |
| 215 |
\long\def\ltx@secondoftwo#1#2{#2} |
| 216 |
\long\def\ltx@firstofthree#1#2#3{#1} |
| 217 |
\long\def\ltx@secondofthree#1#2#3{#2} |
| 218 |
\long\def\ltx@thirdofthree#1#2#3{#3}% |
| 219 |
\long\def\ltx@firstoffour#1#2#3#4{#1} |
| 220 |
\long\def\ltx@secondoffour#1#2#3#4{#2} |
| 221 |
\long\def\ltx@thirdoffour#1#2#3#4{#3}% |
| 222 |
\long\def\ltx@fourthoffour#1#2#3#4{#4}% |
| 223 |
\long\def\ltx@carzero#1\@nil{}% |
| 224 |
\long\def\LTXcmds@cdrzero#1\@nil{#1} |
| 225 |
\def\ltx@cdrzero{% |
| 226 |
\romannumeral\LTXcmds@cdrzero\ltx@zero |
| 227 |
} |
| 228 |
\long\def\ltx@car#1#2\@nil{#1} |
| 229 |
\long\def\ltx@cdr#1{% |
| 230 |
\romannumeral\LTXcmds@cdrzero\ltx@zero |
| 231 |
} |
| 232 |
\long\def\ltx@cartwo#1#2#3\@nil{#1#2} |
| 233 |
\long\def\ltx@carsecond#1#2#3\@nil{#2} |
| 234 |
\long\def\ltx@cdrtwo#1#2{% |
| 235 |
\romannumeral\LTXcmds@cdrzero\ltx@zero |
| 236 |
} |
| 237 |
\long\def\ltx@carthree#1#2#3#4\@nil{#1#2#3} |
| 238 |
\long\def\ltx@carthird#1#2#3#4\@nil{#3} |
| 239 |
\long\def\ltx@cdrthree#1#2#3{% |
| 240 |
\romannumeral\LTXcmds@cdrzero\ltx@zero |
| 241 |
} |
| 242 |
\long\def\ltx@carfour#1#2#3#4#5\@nil{#1#2#3#4} |
| 243 |
\long\def\ltx@carfourth#1#2#3#4#5\@nil{#4} |
| 244 |
\long\def\ltx@cdrfour#1#2#3#4{% |
| 245 |
\romannumeral\LTXcmds@cdrzero\ltx@zero |
| 246 |
} |
| 247 |
\def\ltx@CarNum#1{% |
| 248 |
\romannumeral |
| 249 |
\csname LTXcmds@CarNumFinish% |
| 250 |
\expandafter\LTXcmds@CarNum |
| 251 |
\romannumeral\LTXcmds@num{#1}000{x\endcsname}% |
| 252 |
} |
| 253 |
\def\LTXcmds@CarNum#1{% |
| 254 |
\csname LTXcmds@C#1\LTXcmds@CarNum |
| 255 |
} |
| 256 |
\long\def\LTXcmds@Cm#1#2{% |
| 257 |
\endcsname{#1#2}% |
| 258 |
} |
| 259 |
\def\LTXcmds@Cx#1{% |
| 260 |
\endcsname{}% |
| 261 |
} |
| 262 |
\long\def\LTXcmds@CarNumFinish#1#2\@nil{% |
| 263 |
\ltx@zero |
| 264 |
#1% |
| 265 |
} |
| 266 |
\def\ltx@CarNumth#1{% |
| 267 |
\romannumeral |
| 268 |
\expandafter\expandafter\expandafter |
| 269 |
\LTXcmds@CarNumth |
| 270 |
\ltx@GobbleNum{#1}{}% |
| 271 |
} |
| 272 |
\long\def\LTXcmds@CarNumth#1#2\@nil{% |
| 273 |
\ltx@zero |
| 274 |
#1% |
| 275 |
} |
| 276 |
\def\ltx@CdrNum#1{% |
| 277 |
\romannumeral% |
| 278 |
\expandafter\expandafter\expandafter\ltx@cdrzero |
| 279 |
\expandafter\expandafter\expandafter\ltx@zero |
| 280 |
\ltx@GobbleNum{#1}% |
| 281 |
} |
| 282 |
\long\def\ltx@ReturnAfterFi#1\fi{\fi#1} |
| 283 |
\long\def\ltx@ReturnAfterElseFi#1\else#2\fi{\fi#1} |
| 284 |
\def\ltx@empty{} |
| 285 |
\def\ltx@space{ } |
| 286 |
\begingroup |
| 287 |
\lccode`0=`\%\relax |
| 288 |
\lowercase{\endgroup |
| 289 |
\def\ltx@percentchar{0}% |
| 290 |
} |
| 291 |
\begingroup |
| 292 |
\lccode`0=`\\\relax |
| 293 |
\lowercase{\endgroup |
| 294 |
\def\ltx@backslashchar{0}% |
| 295 |
} |
| 296 |
\begingroup |
| 297 |
\lccode`0=`\#\relax |
| 298 |
\lowercase{\endgroup |
| 299 |
\def\ltx@hashchar{0}% |
| 300 |
} |
| 301 |
\begingroup |
| 302 |
\lccode`0=`\{\relax |
| 303 |
\lowercase{\endgroup |
| 304 |
\def\ltx@leftbracechar{0}% |
| 305 |
} |
| 306 |
\begingroup |
| 307 |
\lccode`0=`\}\relax |
| 308 |
\lowercase{\endgroup |
| 309 |
\def\ltx@rightbracechar{0}% |
| 310 |
} |
| 311 |
\def\ltx@newif#1{% |
| 312 |
\begingroup |
| 313 |
\escapechar=-1 % |
| 314 |
\expandafter\endgroup |
| 315 |
\expandafter\LTXcmds@newif\string#1\@nil |
| 316 |
} |
| 317 |
\begingroup |
| 318 |
\escapechar=-1 % |
| 319 |
\expandafter\endgroup |
| 320 |
\expandafter\def\expandafter\LTXcmds@newif\string\if#1\@nil{% |
| 321 |
\expandafter\edef\csname#1true\endcsname{% |
| 322 |
\let |
| 323 |
\expandafter\noexpand\csname if#1\endcsname |
| 324 |
\noexpand\iftrue |
| 325 |
}% |
| 326 |
\expandafter\edef\csname#1false\endcsname{% |
| 327 |
\let |
| 328 |
\expandafter\noexpand\csname if#1\endcsname |
| 329 |
\noexpand\iffalse |
| 330 |
}% |
| 331 |
\csname#1false\endcsname |
| 332 |
} |
| 333 |
\def\ltx@newglobalif#1{% |
| 334 |
\begingroup |
| 335 |
\escapechar=-1 % |
| 336 |
\expandafter\endgroup |
| 337 |
\expandafter\LTXcmds@newglobalif\string#1\@nil |
| 338 |
} |
| 339 |
\begingroup |
| 340 |
\escapechar=-1 % |
| 341 |
\expandafter\endgroup |
| 342 |
\expandafter |
| 343 |
\def\expandafter\LTXcmds@newglobalif\string\if#1\@nil{% |
| 344 |
\expandafter\edef\csname#1true\endcsname{% |
| 345 |
\global\let |
| 346 |
\expandafter\noexpand\csname if#1\endcsname |
| 347 |
\noexpand\iftrue |
| 348 |
}% |
| 349 |
\expandafter\edef\csname#1false\endcsname{% |
| 350 |
\global\let |
| 351 |
\expandafter\noexpand\csname if#1\endcsname |
| 352 |
\noexpand\iffalse |
| 353 |
}% |
| 354 |
\csname#1false\endcsname |
| 355 |
} |
| 356 |
\def\ltx@LocalExpandAfter{% |
| 357 |
\begingroup |
| 358 |
\expandafter\expandafter\expandafter |
| 359 |
\endgroup |
| 360 |
\expandafter |
| 361 |
} |
| 362 |
\ltx@LocalExpandAfter |
| 363 |
\ifx\csname ifcsname\endcsname\relax |
| 364 |
\def\ltx@ifundefined#1{% |
| 365 |
\expandafter\ifx\csname #1\endcsname\relax |
| 366 |
\expandafter\ltx@firstoftwo |
| 367 |
\else |
| 368 |
\expandafter\ltx@secondoftwo |
| 369 |
\fi |
| 370 |
}% |
| 371 |
\def\ltx@IfUndefined#1{% |
| 372 |
\begingroup\expandafter\expandafter\expandafter\endgroup |
| 373 |
\expandafter\ifx\csname #1\endcsname\relax |
| 374 |
\expandafter\ltx@firstoftwo |
| 375 |
\else |
| 376 |
\expandafter\ltx@secondoftwo |
| 377 |
\fi |
| 378 |
}% |
| 379 |
\expandafter\ltx@gobble |
| 380 |
\else |
| 381 |
\expandafter\ltx@firstofone |
| 382 |
\fi |
| 383 |
{% |
| 384 |
\def\ltx@ifundefined#1{% |
| 385 |
\ifcsname #1\endcsname |
| 386 |
\expandafter\ifx\csname #1\endcsname\relax |
| 387 |
\expandafter\expandafter\expandafter\ltx@firstoftwo |
| 388 |
\else |
| 389 |
\expandafter\expandafter\expandafter\ltx@secondoftwo |
| 390 |
\fi |
| 391 |
\else |
| 392 |
\expandafter\ltx@firstoftwo |
| 393 |
\fi |
| 394 |
}% |
| 395 |
\let\ltx@IfUndefined\ltx@ifundefined |
| 396 |
} |
| 397 |
\def\ltx@RemovePrefix#1>{} |
| 398 |
\def\ltx@StripPrefix{% |
| 399 |
\expandafter\ltx@RemovePrefix |
| 400 |
} |
| 401 |
\def\ltx@onelevel@sanitize#1{% |
| 402 |
\edef#1{% |
| 403 |
\expandafter |
| 404 |
\ltx@RemovePrefix\meaning#1% |
| 405 |
}% |
| 406 |
} |
| 407 |
\def\ltx@clsextension{cls} |
| 408 |
\def\ltx@pkgextension{sty} |
| 409 |
\def\ltx@iffileloaded#1{% |
| 410 |
\ltx@ifundefined{ver@#1}\ltx@secondoftwo\ltx@firstoftwo |
| 411 |
} |
| 412 |
\def\ltx@ifclassloaded#1{% |
| 413 |
\ltx@iffileloaded{#1.\ltx@clsextension}% |
| 414 |
} |
| 415 |
\def\ltx@ifpackageloaded#1{% |
| 416 |
\ltx@iffileloaded{#1.\ltx@pkgextension}% |
| 417 |
} |
| 418 |
\def\ltx@ifl@ter#1#2{% |
| 419 |
\expandafter\ltx@ifl@t@r |
| 420 |
\csname ver@#2.#1\endcsname} |
| 421 |
\def\ltx@ifl@t@r#1#2{% |
| 422 |
\ifnum\expandafter\ltx@parse@version@#1//00\@nil<% |
| 423 |
\expandafter\ltx@parse@version@#2//00\@nil |
| 424 |
\expandafter\ltx@secondoftwo |
| 425 |
\else |
| 426 |
\expandafter\ltx@firstoftwo |
| 427 |
\fi} |
| 428 |
\def\ltx@parse@version@#1{\ltx@parse@version0#1} |
| 429 |
\def\ltx@parse@version#1/#2/#3#4#5\@nil{% |
| 430 |
\ltx@parse@version@dash#1-#2-#3#4\@nil |
| 431 |
} |
| 432 |
\def\ltx@parse@version@dash#1-#2-#3#4#5\@nil{% |
| 433 |
\if\relax#2\relax\else#1\fi#2#3#4 } |
| 434 |
\def\ltx@iffilelater#1{\expandafter\ltx@ifl@t@r\csname ver@#1\endcsname} |
| 435 |
\def\ltx@ifclasslater{\ltx@ifl@ter\ltx@clsextension} |
| 436 |
\def\ltx@ifpackagelater{\ltx@ifl@ter\ltx@pkgextension} |
| 437 |
\long\def\ltx@GlobalAppendToMacro#1#2{% |
| 438 |
\ifx\ltx@undefined#1% |
| 439 |
\let#1\ltx@empty |
| 440 |
\else |
| 441 |
\ifx\relax#1% |
| 442 |
\let#1\ltx@empty |
| 443 |
\fi |
| 444 |
\fi |
| 445 |
\begingroup |
| 446 |
\ltx@LocToksA\expandafter{#1#2}% |
| 447 |
\xdef#1{\the\ltx@LocToksA}% |
| 448 |
\endgroup |
| 449 |
} |
| 450 |
\long\def\ltx@LocalAppendToMacro#1#2{% |
| 451 |
\global\let\LTXcmds@gtemp#1% |
| 452 |
\ifx\ltx@undefined\LTXcmds@gtemp |
| 453 |
\global\let\LTXcmds@gtemp\ltx@empty |
| 454 |
\else |
| 455 |
\ifx\relax\LTXcmds@gtemp |
| 456 |
\global\letLTXcmds@gtemp\ltx@empty |
| 457 |
\fi |
| 458 |
\fi |
| 459 |
\begingroup |
| 460 |
\ltx@LocToksA\expandafter{\LTXcmds@gtemp#2}% |
| 461 |
\xdef\LTXcmds@gtemp{\the\ltx@LocToksA}% |
| 462 |
\endgroup |
| 463 |
\let#1\LTXcmds@gtemp |
| 464 |
} |
| 465 |
\long\def\ltx@GlobalPrependToMacro#1#2{% |
| 466 |
\ifx\ltx@undefined#1% |
| 467 |
\let#1\ltx@empty |
| 468 |
\else |
| 469 |
\ifx\relax#1% |
| 470 |
\let#1\ltx@empty |
| 471 |
\fi |
| 472 |
\fi |
| 473 |
\begingroup |
| 474 |
\ltx@LocToksA{#2}% |
| 475 |
\ltx@LocToksB\expandafter{#1}% |
| 476 |
\xdef#1{\the\ltx@LocToksA\the\ltx@LocToksB}% |
| 477 |
\endgroup |
| 478 |
} |
| 479 |
\long\def\ltx@LocalPrependToMacro#1#2{% |
| 480 |
\global\let\LTXcmds@gtemp#1% |
| 481 |
\ifx\ltx@undefined\LTXcmds@gtemp |
| 482 |
\global\let\LTXcmds@gtemp\ltx@empty |
| 483 |
\else |
| 484 |
\ifx\relax\LTXcmds@gtemp |
| 485 |
\global\letLTXcmds@gtemp\ltx@empty |
| 486 |
\fi |
| 487 |
\fi |
| 488 |
\begingroup |
| 489 |
\ltx@LocToksA{#2}% |
| 490 |
\ltx@LocToksB\expandafter{\LTXcmds@gtemp}% |
| 491 |
\xdef\LTXcmds@gtemp{\the\ltx@LocToksA\the\ltx@LocToksB}% |
| 492 |
\endgroup |
| 493 |
\let#1\LTXcmds@gtemp |
| 494 |
} |
| 495 |
\long\def\ltx@ifnextchar#1#2#3{% |
| 496 |
\begingroup |
| 497 |
\let\LTXcmds@CharToken= #1\relax |
| 498 |
\ltx@LocToksA{\endgroup#2}% |
| 499 |
\ltx@LocToksB{\endgroup#3}% |
| 500 |
\futurelet\LTXcmds@LetToken\LTXcmds@ifnextchar |
| 501 |
} |
| 502 |
\def\LTXcmds@ifnextchar{% |
| 503 |
\ifx\LTXcmds@LetToken\LTXcmds@CharToken |
| 504 |
\the\expandafter\ltx@LocToksA |
| 505 |
\else |
| 506 |
\expandafter |
| 507 |
\ifx\csname LTXcmds@LetToken\endcsname\LTXcmds@SpaceToken |
| 508 |
\expandafter\expandafter\expandafter\LTXcmds@@ifnextchar |
| 509 |
\else |
| 510 |
\the\expandafter\expandafter\expandafter\ltx@LocToksB |
| 511 |
\fi |
| 512 |
\fi |
| 513 |
} |
| 514 |
\def\LTXcmds@@ifnextchar{% |
| 515 |
\expandafter\futurelet |
| 516 |
\expandafter\LTXcmds@LetToken |
| 517 |
\expandafter\LTXcmds@ifnextchar |
| 518 |
\romannumeral-`\.% |
| 519 |
} |
| 520 |
\ltx@firstofone{\let\LTXcmds@SpaceToken= } % |
| 521 |
\long\def\ltx@ifnextchar@nospace#1#2#3{% |
| 522 |
\begingroup |
| 523 |
\let\LTXcmds@CharToken= #1\relax |
| 524 |
\ltx@LocToksA{\endgroup#2}% |
| 525 |
\ltx@LocToksB{\endgroup#3}% |
| 526 |
\futurelet\LTXcmds@LetToken\LTXcmds@ifnextchar@nospace |
| 527 |
} |
| 528 |
\def\LTXcmds@ifnextchar@nospace{% |
| 529 |
\the |
| 530 |
\ifx\LTXcmds@LetToken\LTXcmds@CharToken |
| 531 |
\expandafter\ltx@LocToksA |
| 532 |
\else |
| 533 |
\expandafter\ltx@LocToksB |
| 534 |
\fi |
| 535 |
} |
| 536 |
\ltx@IfUndefined{quitvmode}{% |
| 537 |
\ltx@IfUndefined{leavevmode}{% |
| 538 |
\ltx@IfUndefined{voidb@x}{% |
| 539 |
\ltx@IfUndefined{newbox}{% |
| 540 |
\def\ltx@leavevmode{% |
| 541 |
\begingroup |
| 542 |
\setbox\ltx@zero=\hbox{}% |
| 543 |
\begingroup |
| 544 |
\setbox\ltx@zero=\hbox{\box\ltx@zero}% |
| 545 |
\endgroup |
| 546 |
\unhbox\ltx@zero |
| 547 |
\endgroup |
| 548 |
}% |
| 549 |
}{% |
| 550 |
\csname newbox\endcsname\LTXcmds@VoidBox |
| 551 |
\ifvoid\LTXcmds@VoidBox |
| 552 |
\else |
| 553 |
\setbox\LTXcmds@VoidBox=\hbox{}% |
| 554 |
\begingroup |
| 555 |
\setbox\LTXcmds@VoidBox=\hbox{\box\LTXcmds@VoidBox}% |
| 556 |
\endgroup |
| 557 |
\fi |
| 558 |
\def\ltx@leavevmode{\unhbox\LTXcmds@VoidBox}% |
| 559 |
}% |
| 560 |
}{% |
| 561 |
\def\ltx@leavevmode{\unhbox\voidb@x}% |
| 562 |
}% |
| 563 |
}{% |
| 564 |
\let\ltx@leavevmode\leavevmode |
| 565 |
}% |
| 566 |
}{% |
| 567 |
\let\ltx@leavevmode\quitvmode |
| 568 |
} |
| 569 |
\def\ltx@mbox{% |
| 570 |
\ltx@leavevmode |
| 571 |
\hbox |
| 572 |
} |
| 573 |
\ltx@IfUndefined{numexpr}{% |
| 574 |
\def\LTXcmds@num#1{% |
| 575 |
\expandafter\ltx@firstofone\expandafter{% |
| 576 |
\number#1% |
| 577 |
}% |
| 578 |
}% |
| 579 |
}{% |
| 580 |
\def\LTXcmds@num#1{% |
| 581 |
\expandafter\ltx@firstofone\expandafter{% |
| 582 |
\the\numexpr#1% |
| 583 |
}% |
| 584 |
}% |
| 585 |
} |
| 586 |
\ltx@IfUndefined{detokenize}{% |
| 587 |
\def\LTXcmds@temp#1{% |
| 588 |
\long\def\ltx@ifempty##1{% |
| 589 |
\romannumeral0% |
| 590 |
\iffalse{\fi |
| 591 |
\expandafter\ltx@gobble\expandafter{% |
| 592 |
\expandafter{\string##1}% |
| 593 |
\expandafter\ltx@gobble\string |
| 594 |
}% |
| 595 |
\expandafter\ltx@firstofthree\expandafter |
| 596 |
{\iffalse}\fi |
| 597 |
\expandafter#1\ltx@secondoftwo |
| 598 |
}% |
| 599 |
\expandafter#1\ltx@firstoftwo |
| 600 |
}% |
| 601 |
\long\def\ltx@ifblank##1{% |
| 602 |
\romannumeral0% |
| 603 |
\iffalse{\fi |
| 604 |
\expandafter\expandafter\expandafter\ltx@gobble |
| 605 |
\expandafter\expandafter\expandafter{% |
| 606 |
\expandafter\expandafter\expandafter{% |
| 607 |
\expandafter\string\ltx@gobble##1.% |
| 608 |
}% |
| 609 |
\expandafter\ltx@gobble\string |
| 610 |
}% |
| 611 |
\expandafter\ltx@firstofthree\expandafter |
| 612 |
{\iffalse}\fi |
| 613 |
\expandafter#1\ltx@secondoftwo |
| 614 |
}% |
| 615 |
\expandafter#1\ltx@firstoftwo |
| 616 |
}% |
| 617 |
}% |
| 618 |
\LTXcmds@temp{ }% |
| 619 |
}{% |
| 620 |
\long\def\ltx@ifempty#1{% |
| 621 |
\romannumeral% |
| 622 |
\csname |
| 623 |
LTXcmds@ifempty% |
| 624 |
\ifcat$\detokenize{#1}$% |
| 625 |
@% |
| 626 |
\fi |
| 627 |
\endcsname |
| 628 |
}% |
| 629 |
\long\def\LTXcmds@ifempty@#1#2{0 #1}% |
| 630 |
\long\def\LTXcmds@ifempty#1#2{0 #2}% |
| 631 |
\long\def\ltx@ifblank#1{% |
| 632 |
\romannumeral% |
| 633 |
\csname |
| 634 |
LTXcmds@ifempty% |
| 635 |
\ifcat$\detokenize\expandafter{\ltx@gobble#1.}$% |
| 636 |
@% |
| 637 |
\fi |
| 638 |
\endcsname |
| 639 |
}% |
| 640 |
} |
| 641 |
\long\def\ltx@zapspace#1{% |
| 642 |
\romannumeral |
| 643 |
\LTXcmds@zapspace\ltx@zero#1 \@nil |
| 644 |
} |
| 645 |
\long\def\LTXcmds@zapspace#1 #2\@nil{% |
| 646 |
\ltx@ifempty{#2}{% |
| 647 |
#1% |
| 648 |
}{% |
| 649 |
\LTXcmds@zapspace#1#2\@nil |
| 650 |
}% |
| 651 |
} |
| 652 |
\ltx@IfUndefined{lastnodetype}{% |
| 653 |
\catcode`\$=9 % |
| 654 |
\catcode`\&=14 % |
| 655 |
}{% |
| 656 |
\catcode`\$=14 % |
| 657 |
\catcode`\&=9 % |
| 658 |
} |
| 659 |
\def\ltx@IfBoxEmpty#1{% |
| 660 |
\ifvoid#1\relax |
| 661 |
\expandafter\ltx@secondoftwo |
| 662 |
\else |
| 663 |
& \begingroup |
| 664 |
& \setbox\ltx@zero=\ifhbox#1\hbox\else\vbox\fi{% |
| 665 |
& \ifhmode\unhcopy\else\unvcopy\fi#1\relax |
| 666 |
& \expandafter |
| 667 |
& }% |
| 668 |
& \expandafter\endgroup |
| 669 |
& \ifnum\lastnodetype<\ltx@zero |
| 670 |
& \expandafter\expandafter\expandafter\ltx@firstoftwo |
| 671 |
& \else |
| 672 |
& \expandafter\expandafter\expandafter\ltx@secondoftwo |
| 673 |
& \fi |
| 674 |
$ \begingroup |
| 675 |
$ \setbox\ltx@zero=\ifhbox#1\hbox\else\vbox\fi{% |
| 676 |
$ \penalty\ltx@one |
| 677 |
$ \ifhmode\unhcopy\else\unvcopy\fi#1\relax |
| 678 |
$ \expandafter |
| 679 |
$ }% |
| 680 |
$ \ifnum\lastpenalty=\ltx@one |
| 681 |
$ \endgroup |
| 682 |
$ \begingroup |
| 683 |
$ \setbox\ltx@zero=\ifhbox#1\hbox\else\vbox\fi{% |
| 684 |
$ \penalty\ltx@two |
| 685 |
$ \ifhmode\unhcopy\else\unvcopy\fi#1\relax |
| 686 |
$ \expandafter |
| 687 |
$ }% |
| 688 |
$ \ifnum\lastpenalty=\ltx@two |
| 689 |
$ \def\next{\endgroup\expandafter\ltx@firstoftwo}% |
| 690 |
$ \else |
| 691 |
$ \def\next{\endgroup\expandafter\ltx@secondoftwo}% |
| 692 |
$ \fi |
| 693 |
$ \else |
| 694 |
$ \def\next{\endgroup\expandafter\ltx@secondoftwo}% |
| 695 |
$ \fi |
| 696 |
$ \next |
| 697 |
\fi |
| 698 |
} |
| 699 |
\def\ltx@IfBoxVoidOrEmpty#1{% |
| 700 |
\ifvoid#1\relax |
| 701 |
\expandafter\ltx@thirdoffour |
| 702 |
\fi |
| 703 |
\ltx@IfBoxEmpty{#1}% |
| 704 |
} |
| 705 |
\LTXcmds@AtEnd% |
| 706 |
%% \section{Installation} |
| 707 |
\endinput |
| 708 |
%% |
| 709 |
%% End of file `ltxcmds.sty'. |