| 1 |
%% |
| 2 |
%% This is file `array.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% array.dtx (with options: `package,ncols') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% The source is maintained by the LaTeX Project team and bug |
| 12 |
%% reports for it can be opened at https://latex-project.org/bugs/ |
| 13 |
%% (but please observe conditions on bug reports sent to that address!) |
| 14 |
%% |
| 15 |
%% |
| 16 |
%% Copyright (C) 1993-2026 |
| 17 |
%% The LaTeX Project and any individual authors listed elsewhere |
| 18 |
%% in this file. |
| 19 |
%% |
| 20 |
%% This file was generated from file(s) of the Standard LaTeX `Tools Bundle'. |
| 21 |
%% -------------------------------------------------------------------------- |
| 22 |
%% |
| 23 |
%% It may be distributed and/or modified under the |
| 24 |
%% conditions of the LaTeX Project Public License, either version 1.3c |
| 25 |
%% of this license or (at your option) any later version. |
| 26 |
%% The latest version of this license is in |
| 27 |
%% https://www.latex-project.org/lppl.txt |
| 28 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 29 |
%% version 2005/12/01 or later. |
| 30 |
%% |
| 31 |
%% This file may only be distributed together with a copy of the LaTeX |
| 32 |
%% `Tools Bundle'. You may however distribute the LaTeX `Tools Bundle' |
| 33 |
%% without such generated files. |
| 34 |
%% |
| 35 |
%% The list of all files belonging to the LaTeX `Tools Bundle' is |
| 36 |
%% given in the file `manifest.txt'. |
| 37 |
%% |
| 38 |
%% Package `array' to use with LaTeX 2e |
| 39 |
%% Copyright (C) 1989-1998 Frank Mittelbach, all rights reserved. |
| 40 |
|
| 41 |
\DeclareRelease{}{1994-06-01}{array-2016-10-06.sty} |
| 42 |
\DeclareRelease{}{2016-10-06}{array-2016-10-06.sty} |
| 43 |
\DeclareRelease{v2.4}{2020-02-10}{array-2020-02-10.sty} |
| 44 |
\DeclareRelease{v2.5}{2023-11-01}{array-2023-11-01.sty} |
| 45 |
\DeclareRelease{v2.6}{2024-06-01}{array-2024-06-01.sty} |
| 46 |
\DeclareCurrentRelease{}{2026-06-01} |
| 47 |
|
| 48 |
\NeedsTeXFormat{LaTeX2e}[2026/06/01] |
| 49 |
\ProvidesPackage{array} |
| 50 |
[2026/02/24 v2.7b Tabular extension package (FMi)] |
| 51 |
%% |
| 52 |
|
| 53 |
|
| 54 |
\ExplSyntaxOn |
| 55 |
\def\@addtopreamble#1{\xdef\@preamble{\@preamble #1}} |
| 56 |
\ExplSyntaxOff |
| 57 |
\def\@testpach{\@chclass |
| 58 |
\ifnum \@lastchclass=6 \@ne \@chnum \@ne \else |
| 59 |
\ifnum \@lastchclass=7 5 \else |
| 60 |
\ifnum \@lastchclass=8 \tw@ \else |
| 61 |
\ifnum \@lastchclass=9 \thr@@ |
| 62 |
\else \z@ |
| 63 |
\ifnum \@lastchclass = 10 \else |
| 64 |
\edef\@nextchar{\expandafter\string\@nextchar}% |
| 65 |
\@chnum |
| 66 |
\if \@nextchar c\z@ \else |
| 67 |
\if \@nextchar l\@ne \else |
| 68 |
\if \@nextchar r\tw@ \else |
| 69 |
\z@ \@chclass |
| 70 |
\if\@nextchar |\@ne \else |
| 71 |
\if \@nextchar !6 \else |
| 72 |
\if \@nextchar @7 \else |
| 73 |
\if \@nextchar <8 \else |
| 74 |
\if \@nextchar >9 \else |
| 75 |
10 |
| 76 |
\@chnum |
| 77 |
\if \@nextchar m\thr@@ \else |
| 78 |
\if \@nextchar p4 \else |
| 79 |
\if \@nextchar b5 \else |
| 80 |
\z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi |
| 81 |
\fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi} |
| 82 |
\ExplSyntaxOn |
| 83 |
\def\@xexpast#1*#2#3#4\@@{% |
| 84 |
\@tempcnta #2 |
| 85 |
\toks@={#1}\@temptokena={#3}% |
| 86 |
\let\the@toksz\relax \let\the@toks\relax |
| 87 |
\def\@tempa{\the@toksz}% |
| 88 |
\ifnum\@tempcnta >0 \@whilenum\@tempcnta >0\do |
| 89 |
{\edef\@tempa{\@tempa\the@toks}\advance \@tempcnta \m@ne}% |
| 90 |
\let \@tempb \@xexpast \else |
| 91 |
\let \@tempb \@xexnoop \fi |
| 92 |
\def\the@toksz{\the\toks@}\def\the@toks{\the\@temptokena}% |
| 93 |
\edef\@tempa{\@tempa}% |
| 94 |
\expandafter \@tempb \@tempa #4\@@} |
| 95 |
\def\prepnext@tok{\advance \count@ \@ne |
| 96 |
\toks\count@{}} |
| 97 |
\def\save@decl{\toks\count@ \expandafter{\@nextchar}} |
| 98 |
\def\insert@column{% |
| 99 |
\__tbl_hook_use_protected:nVVn {tbl/cell/init} |
| 100 |
\g__tbl_row_int |
| 101 |
\g__tbl_col_int |
| 102 |
{ \ar@cell@type } |
| 103 |
\UseTaggingSocket{tbl/cell/begin}% |
| 104 |
\__tbl_hook_use_protected:nVVn {tbl/cell/begin} |
| 105 |
\g__tbl_row_int |
| 106 |
\g__tbl_col_int |
| 107 |
{ \ar@cell@type } |
| 108 |
\@protected@firstofone { \the@toks \the \@tempcnta \ignorespaces } |
| 109 |
\@sharp \textonly@unskip |
| 110 |
\the@toks \the \count@ \relax |
| 111 |
\__tbl_hook_use_protected:nVVn {tbl/cell/end}% |
| 112 |
\g__tbl_row_int |
| 113 |
\g__tbl_col_int |
| 114 |
{\ar@cell@type}% |
| 115 |
\UseTaggingSocket{tbl/cell/end}% |
| 116 |
} |
| 117 |
\protected\def\textonly@unskip{\ifhmode\unskip\fi} |
| 118 |
\protected\long\def\@protected@firstofone#1{#1} |
| 119 |
\cs_new_protected:Npn \__tbl_hook_use_protected:n #1 { |
| 120 |
\hook_use:n {#1} |
| 121 |
} |
| 122 |
\cs_new_protected:Npn \__tbl_hook_use_protected:nn #1#2 { |
| 123 |
\hook_use:nnw {#1}{1}{#2} |
| 124 |
} |
| 125 |
\cs_new_protected:Npn \__tbl_hook_use_protected:nnnn #1#2#3#4 { |
| 126 |
\hook_use:nnw {#1}{3}{#2}{#3}{#4} |
| 127 |
} |
| 128 |
\cs_generate_variant:Nn \__tbl_hook_use_protected:nn { nV } |
| 129 |
\cs_generate_variant:Nn \__tbl_hook_use_protected:nnnn { nVVn } |
| 130 |
\def\insert@pcolumn{% |
| 131 |
\__tbl_hook_use_protected:nVVn {tbl/cell/init}% |
| 132 |
\g__tbl_row_int |
| 133 |
\g__tbl_col_int |
| 134 |
{\ar@cell@type}% |
| 135 |
\UseTaggingSocket{tbl/pcell/begin}% |
| 136 |
\__tbl_hook_use_protected:nVVn {tbl/cell/begin}% |
| 137 |
\g__tbl_row_int |
| 138 |
\g__tbl_col_int |
| 139 |
{\ar@cell@type}% |
| 140 |
\the@toks \the \@tempcnta \relax |
| 141 |
\ignorespaces \@sharp \unskip |
| 142 |
\the@toks \the \count@ \relax |
| 143 |
\__tbl_hook_use_protected:nVVn {tbl/cell/end}% |
| 144 |
\g__tbl_row_int |
| 145 |
\g__tbl_col_int |
| 146 |
{\ar@cell@type}% |
| 147 |
\UseTaggingSocket{tbl/pcell/end}% |
| 148 |
} |
| 149 |
\def\@addamp { |
| 150 |
\if@firstamp |
| 151 |
\@firstampfalse |
| 152 |
\else |
| 153 |
\edef\@preamble{\@preamble & |
| 154 |
\noexpand\tbl_update_cell_data: } |
| 155 |
\fi |
| 156 |
} |
| 157 |
\newdimen\col@sep |
| 158 |
\def\@acol{\@addtopreamble{\hskip\col@sep}} |
| 159 |
\def\@classx{% |
| 160 |
\ifcase \@lastchclass |
| 161 |
\@acolampacol \or |
| 162 |
\@addamp \@acol \or |
| 163 |
\@acolampacol \or |
| 164 |
\or |
| 165 |
\@acol \@firstampfalse \or |
| 166 |
\@addamp |
| 167 |
\fi} |
| 168 |
\str_if_exist:cF { l__socket_tagsupport/math/luamml/array/save_plug_str } |
| 169 |
{ |
| 170 |
\NewSocket{tagsupport/math/luamml/array/save}{0} |
| 171 |
\NewSocket{tagsupport/math/luamml/array/finalize}{0} |
| 172 |
\NewSocket{tagsupport/math/luamml/array/initcol}{0} |
| 173 |
\NewSocket{tagsupport/math/luamml/array/finalizecol}{1} |
| 174 |
\AssignSocketPlug{tagsupport/math/luamml/array/finalizecol}{noop} |
| 175 |
} |
| 176 |
\def\@classz{\@classx |
| 177 |
\@tempcnta \count@ |
| 178 |
\prepnext@tok |
| 179 |
\@addtopreamble{\ifcase \@chnum |
| 180 |
\hfil |
| 181 |
\hskip1sp% |
| 182 |
\d@llarbegin |
| 183 |
\insert@column |
| 184 |
\d@llarend |
| 185 |
\do@row@strut \hfil \or |
| 186 |
\hskip1sp\d@llarbegin\insert@column\d@llarend |
| 187 |
\do@row@strut \hfil \or |
| 188 |
\hfil\hskip1sp\d@llarbegin\insert@column\d@llarend |
| 189 |
\do@row@strut \or |
| 190 |
\setbox\ar@mcellbox\vbox |
| 191 |
\@startpbox{\@nextchar}\insert@pcolumn \@endpbox |
| 192 |
\ar@align@mcell |
| 193 |
\do@row@strut \or |
| 194 |
\vtop \@startpbox{\@nextchar}\insert@pcolumn \@endpbox\do@row@strut \or |
| 195 |
\vbox \@startpbox{\@nextchar}\insert@pcolumn \@endpbox\do@row@strut |
| 196 |
\fi}\prepnext@tok} |
| 197 |
|
| 198 |
\newbox\ar@mcellbox |
| 199 |
\def\ar@align@mcell{% |
| 200 |
\ifdim \ht\ar@mcellbox > \ht\strutbox |
| 201 |
\begingroup |
| 202 |
\dimen@\ht\ar@mcellbox |
| 203 |
\advance\dimen@-\ht\@arstrutbox |
| 204 |
\advance\dimen@\baselineskip |
| 205 |
\lower.5\dimen@\box\ar@mcellbox |
| 206 |
\endgroup |
| 207 |
\else % assume one line and align at baseline |
| 208 |
\box\ar@mcellbox |
| 209 |
\fi} |
| 210 |
|
| 211 |
\def\@arrayrule{\@addtopreamble \vline} |
| 212 |
\def\@classvii{\ifnum \@lastchclass = \thr@@ |
| 213 |
\@preamerr \thr@@ \fi} |
| 214 |
\def\@classvi{\ifcase \@lastchclass |
| 215 |
\@acol \or |
| 216 |
\@addtopreamble{\hskip \doublerulesep}\or |
| 217 |
\@acol \or |
| 218 |
\@classvii |
| 219 |
\fi} |
| 220 |
\def\@classii{\advance \count@ \m@ne |
| 221 |
\save@decl\prepnext@tok} |
| 222 |
\def\@classi{\@classvi |
| 223 |
\ifcase \@chnum \@arrayrule \or |
| 224 |
\@classv \fi} |
| 225 |
\def\@startpbox#1{\bgroup |
| 226 |
\color@begingroup |
| 227 |
\setlength\hsize{#1}\@arrayparboxrestore |
| 228 |
\everypar{% |
| 229 |
\vrule \@height \ht\@arstrutbox \@width \z@ |
| 230 |
\everypar{}}% |
| 231 |
} |
| 232 |
\let\@startpbox@action\@startpbox |
| 233 |
\def\@endpbox{\@finalstrut\@arstrutbox \par \color@endgroup \egroup\hfil} |
| 234 |
\def\@finalstrut#1{% |
| 235 |
\unskip |
| 236 |
\ifhmode \nobreak |
| 237 |
\else |
| 238 |
\ifnum\lastnodetype>\m@ne |
| 239 |
\vskip-\baselineskip |
| 240 |
\fi |
| 241 |
\fi |
| 242 |
\vrule\@width\z@\@height\z@\@depth\dp#1} |
| 243 |
\def\@array[#1]#2{ |
| 244 |
\@tempdima \ht \strutbox |
| 245 |
\advance \@tempdima by\extrarowheight |
| 246 |
\setbox \@arstrutbox \hbox{\vrule |
| 247 |
\@height \arraystretch \@tempdima |
| 248 |
\@depth \arraystretch \dp \strutbox |
| 249 |
\@width \z@}% |
| 250 |
\tbl_init_cell_data_for_table: |
| 251 |
\begingroup |
| 252 |
\@mkpream{#2}% |
| 253 |
\tbl_count_table_cols: |
| 254 |
\xdef\@preamble{ |
| 255 |
\noexpand \ar@ialign |
| 256 |
\@halignto |
| 257 |
\bgroup \@arstrut |
| 258 |
\UseTaggingSocket{tbl/row/begin} |
| 259 |
\__tbl_hook_use_protected:nV {tbl/row/begin} \g__tbl_row_int |
| 260 |
\tbl_init_cell_data_for_row: |
| 261 |
\@preamble |
| 262 |
\tabskip \z@ \cr} |
| 263 |
\endgroup |
| 264 |
\exp_args:Nnno \hook_use:nnw {tbl/init} {2} |
| 265 |
\g__tbl_table_cols_tl {#2} |
| 266 |
\@arrayleft |
| 267 |
\if #1t\vtop \else \if#1b\vbox \else \vcenter@text \fi \fi |
| 268 |
\bgroup |
| 269 |
\let \@sharp ##\let \protect \relax |
| 270 |
\lineskip \z@ |
| 271 |
\baselineskip \z@ |
| 272 |
\mathsurround \z@ |
| 273 |
\let\\\@arraycr \let\tabularnewline\\% |
| 274 |
\def\par{\ifnum\currentgrouptype=6~ \else\@@par\fi}% |
| 275 |
\UseTaggingSocket{tbl/init} |
| 276 |
\@preamble |
| 277 |
} |
| 278 |
\def\ar@ialign{% |
| 279 |
\everycr{% |
| 280 |
\noalign{% |
| 281 |
\tbl_if_row_was_started:T { |
| 282 |
\__tbl_hook_use_protected:nV {tbl/row/end} \g__tbl_row_int |
| 283 |
\UseTaggingSocket{tbl/row/end} |
| 284 |
} |
| 285 |
\tbl_update_cell_data_for_next_row: |
| 286 |
\cs_set_eq:NN \noalign \prg_do_nothing: |
| 287 |
\__tbl_hook_use_protected:nV {tbl/row/init} \g__tbl_row_int |
| 288 |
}% |
| 289 |
}% |
| 290 |
\tabskip\z@skip\halign} |
| 291 |
\def\arraybackslash{\let\\\tabularnewline} |
| 292 |
\newdimen \extrarowheight |
| 293 |
\extrarowheight=0pt |
| 294 |
\def\@arstrut{\unhcopy\@arstrutbox} |
| 295 |
\protected\def\@arraycr { |
| 296 |
\tbl_count_missing_cells:n {@arraycr} |
| 297 |
\iffalse{\fi\ifnum 0=`}\fi |
| 298 |
\@ifstar \@xarraycr \@xarraycr} |
| 299 |
|
| 300 |
\def\@xarraycr{\@ifnextchar [% |
| 301 |
\@argarraycr {\ifnum 0=`{}\fi\cr}} |
| 302 |
\def\@argarraycr[#1]{\ifnum0=`{}\fi\ifdim #1>\z@ |
| 303 |
\expandafter\@xargarraycr\else |
| 304 |
\expandafter\@yargarraycr\fi{#1}} |
| 305 |
\def\@xargarraycr#1{\unskip\gdef\do@row@strut |
| 306 |
{\@tempdima #1\advance\@tempdima \dp\@arstrutbox |
| 307 |
\vrule \@depth\@tempdima \@width\z@\global\let\do@row@strut\relax}% |
| 308 |
\ifnum\@multicnt >\z@ \do@row@strut \fi |
| 309 |
\cr} |
| 310 |
\let\do@row@strut\relax |
| 311 |
\long\def\multicolumn#1#2#3{% |
| 312 |
\multispan{#1}\begingroup |
| 313 |
\tbl_update_multicolumn_cell_data:n {#1} |
| 314 |
\def\@addamp{\if@firstamp \@firstampfalse \else |
| 315 |
\@preamerr 5\fi}% |
| 316 |
\@mkpream{#2}\@addtopreamble\@empty |
| 317 |
\endgroup |
| 318 |
\UseTaggingSocket{tbl/colspan}{#1}% |
| 319 |
\def\@sharp{#3}% |
| 320 |
\@arstrut \@preamble |
| 321 |
\null |
| 322 |
\ignorespaces} |
| 323 |
\let\d@llarbegin\begingroup |
| 324 |
\let\d@llarend\endgroup |
| 325 |
\def\array{\col@sep\arraycolsep |
| 326 |
\def\d@llarbegin{$\tag_socket_use:n { math/luamml/array/initcol }} |
| 327 |
\def\d@llarend |
| 328 |
{ |
| 329 |
\tag_socket_use:nn { math/luamml/save/nn }{{}{mtd}} |
| 330 |
$ |
| 331 |
\tag_socket_use:nn { math/luamml/array/finalizecol}{\the\@chnum} |
| 332 |
} |
| 333 |
\def\@halignto{}% |
| 334 |
\m@th\@tabarray} |
| 335 |
\def\tabular{\def\@halignto{}\@tabular} |
| 336 |
\expandafter\def\csname tabular*\endcsname#1{% |
| 337 |
\setlength\dimen@{#1}% |
| 338 |
\edef\@halignto{to\the\dimen@}\@tabular} |
| 339 |
\providecommand\@kernel@tabular@init{} |
| 340 |
\def\@tabular{% |
| 341 |
\leavevmode |
| 342 |
\UseTaggingSocket{tbl/hmode/begin}% |
| 343 |
\hbox \bgroup |
| 344 |
\col@sep\tabcolsep |
| 345 |
\let\d@llarbegin\begingroup |
| 346 |
\let\d@llarend\endgroup |
| 347 |
\@kernel@tabular@init |
| 348 |
\@tabarray} |
| 349 |
\def\endarray { |
| 350 |
\tbl_crcr:n{endarray} |
| 351 |
\tag_socket_use_expandable:n { math/luamml/array/save } |
| 352 |
\egroup |
| 353 |
\tag_socket_use:n { tbl/finalize } |
| 354 |
\tbl_restore_outer_cell_data: |
| 355 |
\egroup |
| 356 |
\tag_socket_use:n { math/luamml/array/finalize } |
| 357 |
\@arrayright \gdef\@preamble{}% |
| 358 |
} |
| 359 |
\def\endtabular{\endarray\egroup |
| 360 |
\UseTaggingSocket{tbl/hmode/end}% |
| 361 |
} |
| 362 |
\expandafter\let\csname endtabular*\endcsname=\endtabular |
| 363 |
\let\@ampacol=\relax \let\@expast=\relax |
| 364 |
\let\@arrayclassiv=\relax \let\@arrayclassz=\relax |
| 365 |
\let\@tabclassiv=\relax \let\@tabclassz=\relax |
| 366 |
\let\@arrayacol=\relax \let\@tabacol=\relax |
| 367 |
\let\@tabularcr=\relax \let\@@endpbox=\relax |
| 368 |
\let\@argtabularcr=\relax \let\@xtabularcr=\relax |
| 369 |
\ExplSyntaxOff |
| 370 |
\def\@preamerr#1{\def\@tempd{{..} at wrong position: }% |
| 371 |
\PackageError{array}{% |
| 372 |
\ifcase #1 Illegal pream-token (\@nextchar): `c' used\or %0 |
| 373 |
Missing arg: token ignored\or %1 |
| 374 |
Empty preamble: `l' used\or %2 |
| 375 |
>\@tempd token ignored\or %3 |
| 376 |
<\@tempd changed to !{..}\or %4 |
| 377 |
Only one column-spec. allowed.\fi}\@ehc} %5 |
| 378 |
\def\newcolumntype#1{% |
| 379 |
\edef\NC@char{\string#1}% |
| 380 |
\@ifundefined{NC@find@\NC@char}% |
| 381 |
{\@tfor\next:=<>clrmbp@!|\do |
| 382 |
{% |
| 383 |
\if\expandafter\noexpand\next\NC@char |
| 384 |
\PackageWarning{array}% |
| 385 |
{Redefining primitive column \NC@char}\fi}% |
| 386 |
\NC@list\expandafter{\the\NC@list\NC@do#1}}% |
| 387 |
{\PackageWarning{array}{Column \NC@char\space is already defined}}% |
| 388 |
\@namedef{NC@find@\NC@char}##1#1{\NC@{##1}}% |
| 389 |
\@ifnextchar[{\newcol@{\NC@char}}{\newcol@{\NC@char}[0]}} |
| 390 |
\ExplSyntaxOn |
| 391 |
\def\newcol@#1[#2]#3{\expandafter\@reargdef |
| 392 |
\csname NC@rewrite@#1\endcsname[#2]{\NC@find#3}} |
| 393 |
\def\NC@#1{% |
| 394 |
\@temptokena\expandafter{\the\@temptokena#1}\futurelet\next\NC@ifend} |
| 395 |
\def\NC@ifend{% |
| 396 |
\ifx\next\relax |
| 397 |
\else\@tempswatrue\expandafter\NC@rewrite\fi} |
| 398 |
\def\NC@do#1{% |
| 399 |
\expandafter\let\expandafter\NC@rewrite |
| 400 |
\csname NC@rewrite@\string#1\endcsname |
| 401 |
\expandafter\let\expandafter\NC@find |
| 402 |
\csname NC@find@\string#1\endcsname |
| 403 |
\expandafter\@temptokena\expandafter{\expandafter}% |
| 404 |
\expandafter\NC@find\the\@temptokena#1\relax} |
| 405 |
\def\showcols{{\def\NC@do##1{\let\NC@do\NC@show}\the\NC@list}} |
| 406 |
\def\NC@show#1{% |
| 407 |
\typeout{Column~ #1\expandafter\expandafter\expandafter\NC@strip |
| 408 |
\expandafter\meaning\csname NC@rewrite@#1\endcsname\@@}} |
| 409 |
\ExplSyntaxOff |
| 410 |
\def\NC@strip#1:#2->#3 #4\@@{#2 -> #4} |
| 411 |
\ExplSyntaxOn |
| 412 |
\newtoks\NC@list |
| 413 |
\newcolumntype{*}[2]{} |
| 414 |
\long\@namedef{NC@rewrite@*}#1#2{% |
| 415 |
\count@#1\relax |
| 416 |
\loop |
| 417 |
\ifnum\count@>\z@ |
| 418 |
\advance\count@\m@ne |
| 419 |
\@temptokena\expandafter{\the\@temptokena#2}% |
| 420 |
\repeat |
| 421 |
\NC@find} |
| 422 |
\let\@xexpast\relax |
| 423 |
\let\@xexnoop\relax |
| 424 |
\def\save@decl{\toks \count@ = \expandafter\expandafter\expandafter |
| 425 |
{\expandafter\@nextchar\the\toks\count@}} |
| 426 |
\ExplSyntaxOff % really oldstyle using \@tfor := |
| 427 |
\def\@mkpream#1{\gdef\@preamble{}\@lastchclass 4 \@firstamptrue |
| 428 |
\let\@sharp\relax |
| 429 |
\def\@startpbox##1{\unexpanded\expandafter{\expandafter |
| 430 |
\@startpbox@action\expandafter{##1}}}% |
| 431 |
\def\@startpbox@action##1{\unexpanded{\@startpbox@action{##1}}}% |
| 432 |
\let\@endpbox\relax |
| 433 |
\let\do@row@strut\relax |
| 434 |
\let\ar@align@mcell\relax |
| 435 |
\@temptokena{#1}\@tempswatrue |
| 436 |
\@whilesw\if@tempswa\fi{\@tempswafalse\the\NC@list}% |
| 437 |
\count@\m@ne |
| 438 |
\let\the@toks\relax |
| 439 |
\prepnext@tok |
| 440 |
\expandafter \@tfor \expandafter \@nextchar |
| 441 |
\expandafter :\expandafter =\the\@temptokena \do |
| 442 |
{\@testpach |
| 443 |
\edef\ar@cell@type{% |
| 444 |
\ifcase\@chnum c\or l\or r\or m\or p\or b\else ?\fi}% |
| 445 |
\ifcase \@chclass \@classz \or \@classi \or \@classii |
| 446 |
\or \save@decl \or \or \@classv \or \@classvi |
| 447 |
\or \@classvii \or \@classviii |
| 448 |
\or \@classx |
| 449 |
\or \@classx \fi |
| 450 |
\@lastchclass\@chclass}% |
| 451 |
\ifcase\@lastchclass |
| 452 |
\@acol \or |
| 453 |
\or |
| 454 |
\@acol \or |
| 455 |
\@preamerr \thr@@ \or |
| 456 |
\@preamerr \tw@ \@addtopreamble\@sharp \or |
| 457 |
\or |
| 458 |
\else \@preamerr \@ne \fi |
| 459 |
\def\the@toks{\the\toks}} |
| 460 |
\def\ar@cell@type{?} |
| 461 |
\ExplSyntaxOn |
| 462 |
\let\@classix\relax |
| 463 |
\def\@classviii{\ifnum \@lastchclass >\z@\ifnum\@lastchclass=\tw@\else |
| 464 |
\@preamerr 4\@chclass 6 \@classvi \fi\fi} |
| 465 |
\def\@classv{\save@decl |
| 466 |
\expandafter\NC@ecs\@nextchar\extracolsep{}\extracolsep\@@__tbl |
| 467 |
\@addtopreamble{\d@llarbegin\the@toks\the\count@\relax\d@llarend}% |
| 468 |
\prepnext@tok} |
| 469 |
\def\NC@ecs#1\extracolsep#2#3\extracolsep#4\@@__tbl{\def\@tempa{#2}% |
| 470 |
\ifx\@tempa\@empty\else\toks\count@={#1\tabskip#2\relax#3}\fi} |
| 471 |
\def\@tabarray{\@ifnextchar[{\@@array}{\@@array[c]}} |
| 472 |
\let\@@array\@array |
| 473 |
\let\@arrayleft\@empty |
| 474 |
\let\@arrayright\@empty |
| 475 |
\newlength{\extratabsurround} |
| 476 |
\setlength{\extratabsurround}{2pt} |
| 477 |
\newlength{\backup@length} |
| 478 |
\newcommand{\firsthline}{% |
| 479 |
\multicolumn1{@{}c@{}}{% |
| 480 |
\global\backup@length\ht\@arstrutbox |
| 481 |
\global\advance\backup@length\dp\@arstrutbox |
| 482 |
\global\advance\backup@length\arrayrulewidth |
| 483 |
\raise\extratabsurround\copy\@arstrutbox |
| 484 |
\kern-1sp% |
| 485 |
}\\[-\backup@length]\hline |
| 486 |
} |
| 487 |
\newcommand{\lasthline}{\hline\multicolumn1{@{}c@{}}{% |
| 488 |
\global\backup@length2\ht\@arstrutbox |
| 489 |
\global\advance\backup@length2\dp\@arstrutbox |
| 490 |
\global\advance\backup@length\arrayrulewidth |
| 491 |
}\\[-\backup@length]% |
| 492 |
\multicolumn1{@{}c@{}}{% |
| 493 |
\lower\extratabsurround\copy\@arstrutbox |
| 494 |
\kern-1sp% |
| 495 |
}% |
| 496 |
} |
| 497 |
\CheckCommand*\@xhline{\ifx\reserved@a\hline |
| 498 |
\vskip\doublerulesep |
| 499 |
\vskip-\arrayrulewidth |
| 500 |
\fi |
| 501 |
\ifnum0=`{\fi}} |
| 502 |
\renewcommand*\@xhline{\ifx\reserved@a\hline |
| 503 |
\vskip\doublerulesep |
| 504 |
\fi |
| 505 |
\ifnum0=`{\fi}} |
| 506 |
|
| 507 |
\newsavebox\ar@cellbox |
| 508 |
\newcolumntype{w}[2]{% |
| 509 |
>{\begin{lrbox}\ar@cellbox\d@llarbegin}% |
| 510 |
c% |
| 511 |
<{\d@llarend \end{lrbox}% |
| 512 |
\makebox[#2][#1]{\unhbox\ar@cellbox}}} |
| 513 |
|
| 514 |
\newcolumntype{W}[2] |
| 515 |
{>{\begin{lrbox}\ar@cellbox\d@llarbegin}% |
| 516 |
c% |
| 517 |
<{\d@llarend\end{lrbox}% |
| 518 |
\let\hss\hfil |
| 519 |
\makebox[#2][#1]{\unhbox\ar@cellbox}}} |
| 520 |
\ExplSyntaxOn |
| 521 |
\def\@cline#1-#2\@nil{ |
| 522 |
\omit |
| 523 |
\@multicnt#1 |
| 524 |
\advance\@multispan\m@ne |
| 525 |
\ifnum\@multicnt=\@ne\@firstofone{&\omit}\fi |
| 526 |
\@multicnt#2 |
| 527 |
\advance\@multicnt-#1 |
| 528 |
\advance\@multispan\@ne |
| 529 |
\UseTaggingSocket{tbl/leaders/begin} |
| 530 |
\leaders\hrule\@height\arrayrulewidth\hfill |
| 531 |
\UseTaggingSocket{tbl/leaders/end} |
| 532 |
\tbl_gdecr_row_count: |
| 533 |
\cr |
| 534 |
\noalign{\vskip-\arrayrulewidth} |
| 535 |
} |
| 536 |
\ExplSyntaxOff |
| 537 |
\ExplSyntaxOff |
| 538 |
\endinput |
| 539 |
%% |
| 540 |
%% End of file `array.sty'. |