| 1 |
%% |
| 2 |
%% This is an old release of `array.sty' used during rollback operations. |
| 3 |
%% Do not use this file directly. |
| 4 |
%% ============================== |
| 5 |
%% |
| 6 |
%% This is file `array.sty', |
| 7 |
%% generated with the docstrip utility. |
| 8 |
%% |
| 9 |
%% The original source files were: |
| 10 |
%% |
| 11 |
%% array.dtx (with options: `package,ncols') |
| 12 |
%% |
| 13 |
%% This is a generated file. |
| 14 |
%% |
| 15 |
%% The source is maintained by the LaTeX Project team and bug |
| 16 |
%% reports for it can be opened at https://latex-project.org/bugs/ |
| 17 |
%% (but please observe conditions on bug reports sent to that address!) |
| 18 |
%% |
| 19 |
%% |
| 20 |
%% Copyright (C) 1993-2023 |
| 21 |
%% The LaTeX Project and any individual authors listed elsewhere |
| 22 |
%% in this file. |
| 23 |
%% |
| 24 |
%% This file was generated from file(s) of the Standard LaTeX `Tools Bundle'. |
| 25 |
%% -------------------------------------------------------------------------- |
| 26 |
%% |
| 27 |
%% It may be distributed and/or modified under the |
| 28 |
%% conditions of the LaTeX Project Public License, either version 1.3c |
| 29 |
%% of this license or (at your option) any later version. |
| 30 |
%% The latest version of this license is in |
| 31 |
%% https://www.latex-project.org/lppl.txt |
| 32 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 33 |
%% version 2005/12/01 or later. |
| 34 |
%% |
| 35 |
%% This file may only be distributed together with a copy of the LaTeX |
| 36 |
%% `Tools Bundle'. You may however distribute the LaTeX `Tools Bundle' |
| 37 |
%% without such generated files. |
| 38 |
%% |
| 39 |
%% The list of all files belonging to the LaTeX `Tools Bundle' is |
| 40 |
%% given in the file `manifest.txt'. |
| 41 |
%% |
| 42 |
%% Package `array' to use with LaTeX 2e |
| 43 |
%% Copyright (C) 1989-1998 Frank Mittelbach, all rights reserved. |
| 44 |
\NeedsTeXFormat{LaTeX2e}[1995/06/01] |
| 45 |
|
| 46 |
\ProvidesPackage{array} |
| 47 |
[2023/10/16 v2.5g Tabular extension package (FMi)] |
| 48 |
%% |
| 49 |
|
| 50 |
\def\@addtopreamble#1{\xdef\@preamble{\@preamble #1}} |
| 51 |
\def\@testpach{\@chclass |
| 52 |
\ifnum \@lastchclass=6 \@ne \@chnum \@ne \else |
| 53 |
\ifnum \@lastchclass=7 5 \else |
| 54 |
\ifnum \@lastchclass=8 \tw@ \else |
| 55 |
\ifnum \@lastchclass=9 \thr@@ |
| 56 |
\else \z@ |
| 57 |
\ifnum \@lastchclass = 10 \else |
| 58 |
\edef\@nextchar{\expandafter\string\@nextchar}% |
| 59 |
\@chnum |
| 60 |
\if \@nextchar c\z@ \else |
| 61 |
\if \@nextchar l\@ne \else |
| 62 |
\if \@nextchar r\tw@ \else |
| 63 |
\z@ \@chclass |
| 64 |
\if\@nextchar |\@ne \else |
| 65 |
\if \@nextchar !6 \else |
| 66 |
\if \@nextchar @7 \else |
| 67 |
\if \@nextchar <8 \else |
| 68 |
\if \@nextchar >9 \else |
| 69 |
10 |
| 70 |
\@chnum |
| 71 |
\if \@nextchar m\thr@@\else |
| 72 |
\if \@nextchar p4 \else |
| 73 |
\if \@nextchar b5 \else |
| 74 |
\z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi |
| 75 |
\fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi} |
| 76 |
\def\@xexpast#1*#2#3#4\@@{% |
| 77 |
\@tempcnta #2 |
| 78 |
\toks@={#1}\@temptokena={#3}% |
| 79 |
\let\the@toksz\relax \let\the@toks\relax |
| 80 |
\def\@tempa{\the@toksz}% |
| 81 |
\ifnum\@tempcnta >0 \@whilenum\@tempcnta >0\do |
| 82 |
{\edef\@tempa{\@tempa\the@toks}\advance \@tempcnta \m@ne}% |
| 83 |
\let \@tempb \@xexpast \else |
| 84 |
\let \@tempb \@xexnoop \fi |
| 85 |
\def\the@toksz{\the\toks@}\def\the@toks{\the\@temptokena}% |
| 86 |
\edef\@tempa{\@tempa}% |
| 87 |
\expandafter \@tempb \@tempa #4\@@} |
| 88 |
\def\prepnext@tok{\advance \count@ \@ne |
| 89 |
\toks\count@{}} |
| 90 |
\def\save@decl{\toks\count@ \expandafter{\@nextchar}} |
| 91 |
\def\insert@column{% |
| 92 |
\the@toks \the \@tempcnta |
| 93 |
\ignorespaces \@sharp \unskip |
| 94 |
\the@toks \the \count@ \relax} |
| 95 |
\newdimen\col@sep |
| 96 |
\def\@acol{\@addtopreamble{\hskip\col@sep}} |
| 97 |
\def\@classx{% |
| 98 |
\ifcase \@lastchclass |
| 99 |
\@acolampacol \or |
| 100 |
\@addamp \@acol \or |
| 101 |
\@acolampacol \or |
| 102 |
\or |
| 103 |
\@acol \@firstampfalse \or |
| 104 |
\@addamp |
| 105 |
\fi} |
| 106 |
\def\@classz{\@classx |
| 107 |
\@tempcnta \count@ |
| 108 |
\prepnext@tok |
| 109 |
\@addtopreamble{\ifcase \@chnum |
| 110 |
\hfil |
| 111 |
\hskip1sp% |
| 112 |
\d@llarbegin |
| 113 |
\insert@column |
| 114 |
\d@llarend \do@row@strut \hfil \or |
| 115 |
\hskip1sp\d@llarbegin \insert@column \d@llarend \do@row@strut \hfil \or |
| 116 |
\hfil\hskip1sp\d@llarbegin \insert@column \d@llarend \do@row@strut \or |
| 117 |
\setbox\ar@mcellbox\vbox |
| 118 |
\@startpbox{\@nextchar}\insert@column \@endpbox |
| 119 |
\ar@align@mcell |
| 120 |
\do@row@strut \or |
| 121 |
\vtop \@startpbox{\@nextchar}\insert@column \@endpbox\do@row@strut \or |
| 122 |
\vbox \@startpbox{\@nextchar}\insert@column \@endpbox\do@row@strut |
| 123 |
\fi}\prepnext@tok} |
| 124 |
|
| 125 |
\newbox\ar@mcellbox |
| 126 |
\def\ar@align@mcell{% |
| 127 |
\ifdim \ht\ar@mcellbox > \ht\strutbox |
| 128 |
\begingroup |
| 129 |
\dimen@\ht\ar@mcellbox |
| 130 |
\advance\dimen@-\ht\@arstrutbox |
| 131 |
\advance\dimen@\baselineskip |
| 132 |
\lower.5\dimen@\box\ar@mcellbox |
| 133 |
\endgroup |
| 134 |
\else % assume one line and align at baseline |
| 135 |
\box\ar@mcellbox |
| 136 |
\fi} |
| 137 |
|
| 138 |
\def\@arrayrule{\@addtopreamble \vline} |
| 139 |
\def\@classvii{\ifnum \@lastchclass = \thr@@ |
| 140 |
\@preamerr \thr@@ \fi} |
| 141 |
\def\@classvi{\ifcase \@lastchclass |
| 142 |
\@acol \or |
| 143 |
\@addtopreamble{\hskip \doublerulesep}\or |
| 144 |
\@acol \or |
| 145 |
\@classvii |
| 146 |
\fi} |
| 147 |
\def\@classii{\advance \count@ \m@ne |
| 148 |
\save@decl\prepnext@tok} |
| 149 |
\def\@classi{\@classvi |
| 150 |
\ifcase \@chnum \@arrayrule \or |
| 151 |
\@classv \fi} |
| 152 |
\def\@startpbox#1{\bgroup |
| 153 |
\color@begingroup |
| 154 |
\setlength\hsize{#1}\@arrayparboxrestore |
| 155 |
\everypar{% |
| 156 |
\vrule \@height \ht\@arstrutbox \@width \z@ |
| 157 |
\everypar{}}% |
| 158 |
} |
| 159 |
\def\@endpbox{\@finalstrut\@arstrutbox \par \color@endgroup \egroup\hfil} |
| 160 |
\def\@array[#1]#2{% |
| 161 |
\@tempdima \ht \strutbox |
| 162 |
\advance \@tempdima by\extrarowheight |
| 163 |
\setbox \@arstrutbox \hbox{\vrule |
| 164 |
\@height \arraystretch \@tempdima |
| 165 |
\@depth \arraystretch \dp \strutbox |
| 166 |
\@width \z@}% |
| 167 |
\begingroup |
| 168 |
\@mkpream{#2}% |
| 169 |
\xdef\@preamble{\noexpand \ialign \@halignto |
| 170 |
\bgroup \@arstrut \@preamble |
| 171 |
\tabskip \z@ \cr}% |
| 172 |
\endgroup |
| 173 |
\@arrayleft |
| 174 |
\if #1t\vtop \else \if#1b\vbox \else \vcenter \fi \fi |
| 175 |
\bgroup |
| 176 |
\let \@sharp ##\let \protect \relax |
| 177 |
\lineskip \z@ |
| 178 |
\baselineskip \z@ |
| 179 |
\m@th |
| 180 |
\let\\\@arraycr \let\tabularnewline\\\let\par\@empty \@preamble} |
| 181 |
\def\arraybackslash{\let\\\tabularnewline} |
| 182 |
\newdimen \extrarowheight |
| 183 |
\extrarowheight=0pt |
| 184 |
\def\@arstrut{\unhcopy\@arstrutbox} |
| 185 |
\protected\def\@arraycr{\relax\iffalse{\fi\ifnum 0=`}\fi |
| 186 |
\@ifstar \@xarraycr \@xarraycr} |
| 187 |
\def\@xarraycr{\@ifnextchar [% |
| 188 |
\@argarraycr {\ifnum 0=`{}\fi\cr}} |
| 189 |
\def\@argarraycr[#1]{\ifnum0=`{}\fi\ifdim #1>\z@ |
| 190 |
\expandafter\@xargarraycr\else |
| 191 |
\expandafter\@yargarraycr\fi{#1}} |
| 192 |
\def\@xargarraycr#1{\unskip\gdef\do@row@strut |
| 193 |
{\@tempdima #1\advance\@tempdima \dp\@arstrutbox |
| 194 |
\vrule \@depth\@tempdima \@width\z@\global\let\do@row@strut\relax}% |
| 195 |
\ifnum\@multicnt >\z@ \do@row@strut \fi |
| 196 |
\cr} |
| 197 |
\let\do@row@strut\relax |
| 198 |
\long\def\multicolumn#1#2#3{% |
| 199 |
\multispan{#1}\begingroup |
| 200 |
\def\@addamp{\if@firstamp \@firstampfalse \else |
| 201 |
\@preamerr 5\fi}% |
| 202 |
\@mkpream{#2}\@addtopreamble\@empty |
| 203 |
\endgroup |
| 204 |
\def\@sharp{#3}% |
| 205 |
\@arstrut \@preamble |
| 206 |
\null |
| 207 |
\ignorespaces} |
| 208 |
\let\d@llarbegin\begingroup |
| 209 |
\let\d@llarend\endgroup |
| 210 |
\def\array{\col@sep\arraycolsep |
| 211 |
\def\d@llarbegin{$}\let\d@llarend\d@llarbegin\def\@halignto{}% |
| 212 |
\@tabarray} |
| 213 |
\def\tabular{\def\@halignto{}\@tabular} |
| 214 |
\expandafter\def\csname tabular*\endcsname#1{% |
| 215 |
\setlength\dimen@{#1}% |
| 216 |
\edef\@halignto{to\the\dimen@}\@tabular} |
| 217 |
\def\@tabular{% |
| 218 |
\leavevmode |
| 219 |
\hbox \bgroup $\col@sep\tabcolsep \let\d@llarbegin\begingroup |
| 220 |
\let\d@llarend\endgroup |
| 221 |
\@tabarray} |
| 222 |
\def\endtabular{\endarray\m@th $\egroup} |
| 223 |
\expandafter\let\csname endtabular*\endcsname=\endtabular |
| 224 |
\let\@ampacol=\relax \let\@expast=\relax |
| 225 |
\let\@arrayclassiv=\relax \let\@arrayclassz=\relax |
| 226 |
\let\@tabclassiv=\relax \let\@tabclassz=\relax |
| 227 |
\let\@arrayacol=\relax \let\@tabacol=\relax |
| 228 |
\let\@tabularcr=\relax \let\@@endpbox=\relax |
| 229 |
\let\@argtabularcr=\relax \let\@xtabularcr=\relax |
| 230 |
\def\@preamerr#1{\def\@tempd{{..} at wrong position: }% |
| 231 |
\PackageError{array}{% |
| 232 |
\ifcase #1 Illegal pream-token (\@nextchar): `c' used\or %0 |
| 233 |
Missing arg: token ignored\or %1 |
| 234 |
Empty preamble: `l' used\or %2 |
| 235 |
>\@tempd token ignored\or %3 |
| 236 |
<\@tempd changed to !{..}\or %4 |
| 237 |
Only one column-spec. allowed.\fi}\@ehc} %5 |
| 238 |
\def\newcolumntype#1{% |
| 239 |
\edef\NC@char{\string#1}% |
| 240 |
\@ifundefined{NC@find@\NC@char}% |
| 241 |
{\@tfor\next:=<>clrmbp@!|\do |
| 242 |
{% |
| 243 |
\if\expandafter\noexpand\next\NC@char |
| 244 |
\PackageWarning{array}% |
| 245 |
{Redefining primitive column \NC@char}\fi}% |
| 246 |
\NC@list\expandafter{\the\NC@list\NC@do#1}}% |
| 247 |
{\PackageWarning{array}{Column \NC@char\space is already defined}}% |
| 248 |
\@namedef{NC@find@\NC@char}##1#1{\NC@{##1}}% |
| 249 |
\@ifnextchar[{\newcol@{\NC@char}}{\newcol@{\NC@char}[0]}} |
| 250 |
\def\newcol@#1[#2]#3{\expandafter\@reargdef |
| 251 |
\csname NC@rewrite@#1\endcsname[#2]{\NC@find#3}} |
| 252 |
\def\NC@#1{% |
| 253 |
\@temptokena\expandafter{\the\@temptokena#1}\futurelet\next\NC@ifend} |
| 254 |
\def\NC@ifend{% |
| 255 |
\ifx\next\relax |
| 256 |
\else\@tempswatrue\expandafter\NC@rewrite\fi} |
| 257 |
\def\NC@do#1{% |
| 258 |
\expandafter\let\expandafter\NC@rewrite |
| 259 |
\csname NC@rewrite@\string#1\endcsname |
| 260 |
\expandafter\let\expandafter\NC@find |
| 261 |
\csname NC@find@\string#1\endcsname |
| 262 |
\expandafter\@temptokena\expandafter{\expandafter}% |
| 263 |
\expandafter\NC@find\the\@temptokena#1\relax} |
| 264 |
\def\showcols{{\def\NC@do##1{\let\NC@do\NC@show}\the\NC@list}} |
| 265 |
\def\NC@show#1{% |
| 266 |
\typeout{Column #1\expandafter\expandafter\expandafter\NC@strip |
| 267 |
\expandafter\meaning\csname NC@rewrite@#1\endcsname\@@}} |
| 268 |
\def\NC@strip#1:#2->#3 #4\@@{#2 -> #4} |
| 269 |
\newtoks\NC@list |
| 270 |
\newcolumntype{*}[2]{} |
| 271 |
\long\@namedef{NC@rewrite@*}#1#2{% |
| 272 |
\count@#1\relax |
| 273 |
\loop |
| 274 |
\ifnum\count@>\z@ |
| 275 |
\advance\count@\m@ne |
| 276 |
\@temptokena\expandafter{\the\@temptokena#2}% |
| 277 |
\repeat |
| 278 |
\NC@find} |
| 279 |
\let\@xexpast\relax |
| 280 |
\let\@xexnoop\relax |
| 281 |
\def\save@decl{\toks \count@ = \expandafter\expandafter\expandafter |
| 282 |
{\expandafter\@nextchar\the\toks\count@}} |
| 283 |
\def\@mkpream#1{\gdef\@preamble{}\@lastchclass 4 \@firstamptrue |
| 284 |
\let\@sharp\relax |
| 285 |
\def\@startpbox##1{\unexpanded\expandafter{\expandafter |
| 286 |
\@startpbox\expandafter{##1}}}\let\@endpbox\relax |
| 287 |
\let\do@row@strut\relax |
| 288 |
\let\ar@align@mcell\relax |
| 289 |
\@temptokena{#1}\@tempswatrue |
| 290 |
\@whilesw\if@tempswa\fi{\@tempswafalse\the\NC@list}% |
| 291 |
\count@\m@ne |
| 292 |
\let\the@toks\relax |
| 293 |
\prepnext@tok |
| 294 |
\expandafter \@tfor \expandafter \@nextchar |
| 295 |
\expandafter :\expandafter =\the\@temptokena \do |
| 296 |
{\@testpach |
| 297 |
\ifcase \@chclass \@classz \or \@classi \or \@classii |
| 298 |
\or \save@decl \or \or \@classv \or \@classvi |
| 299 |
\or \@classvii \or \@classviii |
| 300 |
\or \@classx |
| 301 |
\or \@classx \fi |
| 302 |
\@lastchclass\@chclass}% |
| 303 |
\ifcase\@lastchclass |
| 304 |
\@acol \or |
| 305 |
\or |
| 306 |
\@acol \or |
| 307 |
\@preamerr \thr@@ \or |
| 308 |
\@preamerr \tw@ \@addtopreamble\@sharp \or |
| 309 |
\or |
| 310 |
\else \@preamerr \@ne \fi |
| 311 |
\def\the@toks{\the\toks}} |
| 312 |
\let\@classix\relax |
| 313 |
\def\@classviii{\ifnum \@lastchclass >\z@\ifnum\@lastchclass=\tw@\else |
| 314 |
\@preamerr 4\@chclass 6 \@classvi \fi\fi} |
| 315 |
\def\@classv{\save@decl |
| 316 |
\expandafter\NC@ecs\@nextchar\extracolsep{}\extracolsep\@@@ |
| 317 |
\@addtopreamble{\d@llarbegin\the@toks\the\count@\relax\d@llarend}% |
| 318 |
\prepnext@tok} |
| 319 |
\def\NC@ecs#1\extracolsep#2#3\extracolsep#4\@@@{\def\@tempa{#2}% |
| 320 |
\ifx\@tempa\@empty\else\toks\count@={#1\tabskip#2\relax#3}\fi} |
| 321 |
\def\@tabarray{\@ifnextchar[{\@@array}{\@@array[c]}} |
| 322 |
\let\@@array\@array |
| 323 |
\def\endarray{\crcr \egroup \egroup \@arrayright \gdef\@preamble{}} |
| 324 |
\let\@arrayleft\@empty |
| 325 |
\let\@arrayright\@empty |
| 326 |
\newlength{\extratabsurround} |
| 327 |
\setlength{\extratabsurround}{2pt} |
| 328 |
\newlength{\backup@length} |
| 329 |
\newcommand{\firsthline}{% |
| 330 |
\multicolumn1{@{}c@{}}{% |
| 331 |
\global\backup@length\ht\@arstrutbox |
| 332 |
\global\advance\backup@length\dp\@arstrutbox |
| 333 |
\global\advance\backup@length\arrayrulewidth |
| 334 |
\raise\extratabsurround\copy\@arstrutbox |
| 335 |
\kern-1sp% |
| 336 |
}\\[-\backup@length]\hline |
| 337 |
} |
| 338 |
\newcommand{\lasthline}{\hline\multicolumn1{@{}c@{}}{% |
| 339 |
\global\backup@length2\ht\@arstrutbox |
| 340 |
\global\advance\backup@length2\dp\@arstrutbox |
| 341 |
\global\advance\backup@length\arrayrulewidth |
| 342 |
}\\[-\backup@length]% |
| 343 |
\multicolumn1{@{}c@{}}{% |
| 344 |
\lower\extratabsurround\copy\@arstrutbox |
| 345 |
\kern-1sp% |
| 346 |
}% |
| 347 |
} |
| 348 |
\CheckCommand*\@xhline{\ifx\reserved@a\hline |
| 349 |
\vskip\doublerulesep |
| 350 |
\vskip-\arrayrulewidth |
| 351 |
\fi |
| 352 |
\ifnum0=`{\fi}} |
| 353 |
\renewcommand*\@xhline{\ifx\reserved@a\hline |
| 354 |
\vskip\doublerulesep |
| 355 |
\fi |
| 356 |
\ifnum0=`{\fi}} |
| 357 |
|
| 358 |
\newsavebox\ar@cellbox |
| 359 |
\newcolumntype{w}[2]{% |
| 360 |
>{\begin{lrbox}\ar@cellbox\d@llarbegin}% |
| 361 |
c% |
| 362 |
<{\d@llarend \end{lrbox}% |
| 363 |
\makebox[#2][#1]{\unhbox\ar@cellbox}}} |
| 364 |
|
| 365 |
\newcolumntype{W}[2] |
| 366 |
{>{\begin{lrbox}\ar@cellbox\d@llarbegin}% |
| 367 |
c% |
| 368 |
<{\d@llarend\end{lrbox}% |
| 369 |
\let\hss\hfil |
| 370 |
\makebox[#2][#1]{\unhbox\ar@cellbox}}} |
| 371 |
\endinput |
| 372 |
%% |
| 373 |
%% End of file `array.sty'. |