| 1 |
%% |
| 2 |
%% This is an old release of `longtable.sty' used during rollback operations. |
| 3 |
%% Do not use this file directly. |
| 4 |
%% ============================== |
| 5 |
%% |
| 6 |
%% This is file `longtable.sty', |
| 7 |
%% generated with the docstrip utility. |
| 8 |
%% |
| 9 |
%% The original source files were: |
| 10 |
%% |
| 11 |
%% longtable.dtx (with options: `package') |
| 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 |
%% Copyright (C) 1993-2020 |
| 20 |
%% The LaTeX3 Project and any individual authors listed elsewhere |
| 21 |
%% in this file. |
| 22 |
%% |
| 23 |
%% This file was generated from file(s) of the Standard LaTeX `Tools Bundle'. |
| 24 |
%% -------------------------------------------------------------------------- |
| 25 |
%% |
| 26 |
%% It may be distributed and/or modified under the |
| 27 |
%% conditions of the LaTeX Project Public License, either version 1.3c |
| 28 |
%% of this license or (at your option) any later version. |
| 29 |
%% The latest version of this license is in |
| 30 |
%% https://www.latex-project.org/lppl.txt |
| 31 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 32 |
%% version 2005/12/01 or later. |
| 33 |
%% |
| 34 |
%% This file may only be distributed together with a copy of the LaTeX |
| 35 |
%% `Tools Bundle'. You may however distribute the LaTeX `Tools Bundle' |
| 36 |
%% without such generated files. |
| 37 |
%% |
| 38 |
%% The list of all files belonging to the LaTeX `Tools Bundle' is |
| 39 |
%% given in the file `manifest.txt'. |
| 40 |
%% |
| 41 |
%% File: longtable.dtx Copyright (C) 1990-2020 David Carlisle |
| 42 |
\NeedsTeXFormat{LaTeX2e}[1995/06/01] |
| 43 |
\ProvidesPackage{longtable} |
| 44 |
[2020/01/07 v4.13 Multi-page Table package (DPC)] |
| 45 |
\def\LT@err{\PackageError{longtable}} |
| 46 |
\def\LT@warn{\PackageWarning{longtable}} |
| 47 |
\def\LT@final@warn{% |
| 48 |
\AtEndDocument{% |
| 49 |
\LT@warn{Table \@width s have changed. Rerun LaTeX.\@gobbletwo}}% |
| 50 |
\global\let\LT@final@warn\relax} |
| 51 |
\DeclareOption{errorshow}{% |
| 52 |
\def\LT@warn{\PackageInfo{longtable}}} |
| 53 |
\DeclareOption{pausing}{% |
| 54 |
\def\LT@warn#1{% |
| 55 |
\LT@err{#1}{This is not really an error}}} |
| 56 |
\DeclareOption{set}{} |
| 57 |
\DeclareOption{final}{} |
| 58 |
\ProcessOptions |
| 59 |
\newskip\LTleft \LTleft=\fill |
| 60 |
\newskip\LTright \LTright=\fill |
| 61 |
\newskip\LTpre \LTpre=\bigskipamount |
| 62 |
\newskip\LTpost \LTpost=\bigskipamount |
| 63 |
\newcount\LTchunksize \LTchunksize=20 |
| 64 |
\let\c@LTchunksize\LTchunksize |
| 65 |
\newdimen\LTcapwidth \LTcapwidth=4in |
| 66 |
\newbox\LT@head |
| 67 |
\newbox\LT@firsthead |
| 68 |
\newbox\LT@foot |
| 69 |
\newbox\LT@lastfoot |
| 70 |
\newcount\LT@cols |
| 71 |
\newcount\LT@rows |
| 72 |
\newcounter{LT@tables} |
| 73 |
\newcounter{LT@chunks}[LT@tables] |
| 74 |
\ifx\c@table\undefined |
| 75 |
\newcounter{table} |
| 76 |
\def\fnum@table{\tablename~\thetable} |
| 77 |
\fi |
| 78 |
\ifx\tablename\undefined |
| 79 |
\def\tablename{Table} |
| 80 |
\fi |
| 81 |
\newtoks\LT@p@ftn |
| 82 |
\mathchardef\LT@end@pen=30000 |
| 83 |
\def\longtable{% |
| 84 |
\par |
| 85 |
\ifx\multicols\@undefined |
| 86 |
\else |
| 87 |
\ifnum\col@number>\@ne |
| 88 |
\@twocolumntrue |
| 89 |
\fi |
| 90 |
\fi |
| 91 |
\if@twocolumn |
| 92 |
\LT@err{longtable not in 1-column mode}\@ehc |
| 93 |
\fi |
| 94 |
\begingroup |
| 95 |
\@ifnextchar[\LT@array{\LT@array[x]}} |
| 96 |
\def\LT@array[#1]#2{% |
| 97 |
\refstepcounter{table}\stepcounter{LT@tables}% |
| 98 |
\if l#1% |
| 99 |
\LTleft\z@ \LTright\fill |
| 100 |
\else\if r#1% |
| 101 |
\LTleft\fill \LTright\z@ |
| 102 |
\else\if c#1% |
| 103 |
\LTleft\fill \LTright\fill |
| 104 |
\fi\fi\fi |
| 105 |
\let\LT@mcol\multicolumn |
| 106 |
\let\LT@@tabarray\@tabarray |
| 107 |
\let\LT@@hl\hline |
| 108 |
\def\@tabarray{% |
| 109 |
\let\hline\LT@@hl |
| 110 |
\LT@@tabarray}% |
| 111 |
\let\\\LT@tabularcr\let\tabularnewline\\% |
| 112 |
\def\newpage{\noalign{\break}}% |
| 113 |
\def\pagebreak{\noalign{\ifnum`}=0\fi\@testopt{\LT@no@pgbk-}4}% |
| 114 |
\def\nopagebreak{\noalign{\ifnum`}=0\fi\@testopt\LT@no@pgbk4}% |
| 115 |
\let\hline\LT@hline \let\kill\LT@kill\let\caption\LT@caption |
| 116 |
\@tempdima\ht\strutbox |
| 117 |
\let\@endpbox\LT@endpbox |
| 118 |
\ifx\extrarowheight\@undefined |
| 119 |
\let\@acol\@tabacol |
| 120 |
\let\@classz\@tabclassz \let\@classiv\@tabclassiv |
| 121 |
\def\@startpbox{\vtop\LT@startpbox}% |
| 122 |
\let\@@startpbox\@startpbox |
| 123 |
\let\@@endpbox\@endpbox |
| 124 |
\let\LT@LL@FM@cr\@tabularcr |
| 125 |
\else |
| 126 |
\advance\@tempdima\extrarowheight |
| 127 |
\col@sep\tabcolsep |
| 128 |
\let\@startpbox\LT@startpbox\let\LT@LL@FM@cr\@arraycr |
| 129 |
\fi |
| 130 |
\setbox\@arstrutbox\hbox{\vrule |
| 131 |
\@height \arraystretch \@tempdima |
| 132 |
\@depth \arraystretch \dp \strutbox |
| 133 |
\@width \z@}% |
| 134 |
\let\@sharp##\let\protect\relax |
| 135 |
\begingroup |
| 136 |
\@mkpream{#2}% |
| 137 |
\xdef\LT@bchunk{% |
| 138 |
\global\advance\c@LT@chunks\@ne |
| 139 |
\global\LT@rows\z@\setbox\z@\vbox\bgroup |
| 140 |
\LT@setprevdepth |
| 141 |
\tabskip\LTleft \noexpand\halign to\hsize\bgroup |
| 142 |
\tabskip\z@ \@arstrut \@preamble \tabskip\LTright \cr}% |
| 143 |
\endgroup |
| 144 |
\expandafter\LT@nofcols\LT@bchunk&\LT@nofcols |
| 145 |
\LT@make@row |
| 146 |
\m@th\let\par\@empty |
| 147 |
\everycr{}\lineskip\z@\baselineskip\z@ |
| 148 |
\LT@bchunk} |
| 149 |
\def\LT@no@pgbk#1[#2]{\penalty #1\@getpen{#2}\ifnum`{=0\fi}} |
| 150 |
\def\LT@start{% |
| 151 |
\let\LT@start\endgraf |
| 152 |
\endgraf\penalty\z@\vskip\LTpre\endgraf |
| 153 |
\dimen@\pagetotal |
| 154 |
\advance\dimen@ \ht\ifvoid\LT@firsthead\LT@head\else\LT@firsthead\fi |
| 155 |
\advance\dimen@ \dp\ifvoid\LT@firsthead\LT@head\else\LT@firsthead\fi |
| 156 |
\advance\dimen@ \ht\LT@foot |
| 157 |
\dimen@ii\vfuzz |
| 158 |
\vfuzz\maxdimen |
| 159 |
\setbox\tw@\copy\z@ |
| 160 |
\setbox\tw@\vsplit\tw@ to \ht\@arstrutbox |
| 161 |
\setbox\tw@\vbox{\unvbox\tw@}% |
| 162 |
\vfuzz\dimen@ii |
| 163 |
\advance\dimen@ \ht |
| 164 |
\ifdim\ht\@arstrutbox>\ht\tw@\@arstrutbox\else\tw@\fi |
| 165 |
\advance\dimen@\dp |
| 166 |
\ifdim\dp\@arstrutbox>\dp\tw@\@arstrutbox\else\tw@\fi |
| 167 |
\advance\dimen@ -\pagegoal |
| 168 |
\ifdim \dimen@>\z@\vfil\break\fi |
| 169 |
\global\@colroom\@colht |
| 170 |
\ifvoid\LT@foot\else |
| 171 |
\advance\vsize-\ht\LT@foot |
| 172 |
\global\advance\@colroom-\ht\LT@foot |
| 173 |
\dimen@\pagegoal\advance\dimen@-\ht\LT@foot\pagegoal\dimen@ |
| 174 |
\maxdepth\z@ |
| 175 |
\fi |
| 176 |
\ifvoid\LT@firsthead\copy\LT@head\else\box\LT@firsthead\fi\nobreak |
| 177 |
\output{\LT@output}} |
| 178 |
\def\endlongtable{% |
| 179 |
\crcr |
| 180 |
\noalign{% |
| 181 |
\let\LT@entry\LT@entry@chop |
| 182 |
\xdef\LT@save@row{\LT@save@row}}% |
| 183 |
\LT@echunk |
| 184 |
\LT@start |
| 185 |
\unvbox\z@ |
| 186 |
\LT@get@widths |
| 187 |
\if@filesw |
| 188 |
{\let\LT@entry\LT@entry@write\immediate\write\@auxout{% |
| 189 |
\gdef\expandafter\noexpand |
| 190 |
\csname LT@\romannumeral\c@LT@tables\endcsname |
| 191 |
{\LT@save@row}}}% |
| 192 |
\fi |
| 193 |
\ifx\LT@save@row\LT@@save@row |
| 194 |
\else |
| 195 |
\LT@warn{Column \@width s have changed\MessageBreak |
| 196 |
in table \thetable}% |
| 197 |
\LT@final@warn |
| 198 |
\fi |
| 199 |
\endgraf\penalty -\LT@end@pen |
| 200 |
\endgroup |
| 201 |
\global\@mparbottom\z@ |
| 202 |
\pagegoal\vsize |
| 203 |
\endgraf\penalty\z@\addvspace\LTpost |
| 204 |
\ifvoid\footins\else\insert\footins{}\fi} |
| 205 |
\def\LT@nofcols#1&{% |
| 206 |
\futurelet\@let@token\LT@n@fcols} |
| 207 |
\def\LT@n@fcols{% |
| 208 |
\advance\LT@cols\@ne |
| 209 |
\ifx\@let@token\LT@nofcols |
| 210 |
\expandafter\@gobble |
| 211 |
\else |
| 212 |
\expandafter\LT@nofcols |
| 213 |
\fi} |
| 214 |
\def\LT@tabularcr{% |
| 215 |
\relax\iffalse{\fi\ifnum0=`}\fi |
| 216 |
\@ifstar |
| 217 |
{\def\crcr{\LT@crcr\noalign{\nobreak}}\let\cr\crcr |
| 218 |
\LT@t@bularcr}% |
| 219 |
{\LT@t@bularcr}} |
| 220 |
\let\LT@crcr\crcr |
| 221 |
\let\LT@setprevdepth\relax |
| 222 |
\def\LT@t@bularcr{% |
| 223 |
\global\advance\LT@rows\@ne |
| 224 |
\ifnum\LT@rows=\LTchunksize |
| 225 |
\gdef\LT@setprevdepth{% |
| 226 |
\prevdepth\z@\global |
| 227 |
\global\let\LT@setprevdepth\relax}% |
| 228 |
\expandafter\LT@xtabularcr |
| 229 |
\else |
| 230 |
\ifnum0=`{}\fi |
| 231 |
\expandafter\LT@LL@FM@cr |
| 232 |
\fi} |
| 233 |
\def\LT@xtabularcr{% |
| 234 |
\@ifnextchar[\LT@argtabularcr\LT@ntabularcr} |
| 235 |
\def\LT@ntabularcr{% |
| 236 |
\ifnum0=`{}\fi |
| 237 |
\LT@echunk |
| 238 |
\LT@start |
| 239 |
\unvbox\z@ |
| 240 |
\LT@get@widths |
| 241 |
\LT@bchunk} |
| 242 |
\def\LT@argtabularcr[#1]{% |
| 243 |
\ifnum0=`{}\fi |
| 244 |
\ifdim #1>\z@ |
| 245 |
\unskip\@xargarraycr{#1}% |
| 246 |
\else |
| 247 |
\@yargarraycr{#1}% |
| 248 |
\fi |
| 249 |
\LT@echunk |
| 250 |
\LT@start |
| 251 |
\unvbox\z@ |
| 252 |
\LT@get@widths |
| 253 |
\LT@bchunk} |
| 254 |
\def\LT@echunk{% |
| 255 |
\crcr\LT@save@row\cr\egroup |
| 256 |
\global\setbox\@ne\lastbox |
| 257 |
\unskip |
| 258 |
\egroup} |
| 259 |
\def\LT@entry#1#2{% |
| 260 |
\ifhmode\@firstofone{&}\fi\omit |
| 261 |
\ifnum#1=\c@LT@chunks |
| 262 |
\else |
| 263 |
\kern#2\relax |
| 264 |
\fi} |
| 265 |
\def\LT@entry@chop#1#2{% |
| 266 |
\noexpand\LT@entry |
| 267 |
{\ifnum#1>\c@LT@chunks |
| 268 |
1}{0pt% |
| 269 |
\else |
| 270 |
#1}{#2% |
| 271 |
\fi}} |
| 272 |
\def\LT@entry@write{% |
| 273 |
\noexpand\LT@entry^^J% |
| 274 |
\@spaces} |
| 275 |
\def\LT@kill{% |
| 276 |
\LT@echunk |
| 277 |
\LT@get@widths |
| 278 |
\expandafter\LT@rebox\LT@bchunk} |
| 279 |
\def\LT@rebox#1\bgroup{% |
| 280 |
#1\bgroup |
| 281 |
\unvbox\z@ |
| 282 |
\unskip |
| 283 |
\setbox\z@\lastbox} |
| 284 |
\def\LT@blank@row{% |
| 285 |
\xdef\LT@save@row{\expandafter\LT@build@blank |
| 286 |
\romannumeral\number\LT@cols 001 }} |
| 287 |
\def\LT@build@blank#1{% |
| 288 |
\if#1m% |
| 289 |
\noexpand\LT@entry{1}{0pt}% |
| 290 |
\expandafter\LT@build@blank |
| 291 |
\fi} |
| 292 |
\def\LT@make@row{% |
| 293 |
\global\expandafter\let\expandafter\LT@save@row |
| 294 |
\csname LT@\romannumeral\c@LT@tables\endcsname |
| 295 |
\ifx\LT@save@row\relax |
| 296 |
\LT@blank@row |
| 297 |
\else |
| 298 |
{\let\LT@entry\or |
| 299 |
\if!% |
| 300 |
\ifcase\expandafter\expandafter\expandafter\LT@cols |
| 301 |
\expandafter\@gobble\LT@save@row |
| 302 |
\or |
| 303 |
\else |
| 304 |
\relax |
| 305 |
\fi |
| 306 |
!% |
| 307 |
\else |
| 308 |
\aftergroup\LT@blank@row |
| 309 |
\fi}% |
| 310 |
\fi} |
| 311 |
\let\setlongtables\relax |
| 312 |
\def\LT@get@widths{% |
| 313 |
\setbox\tw@\hbox{% |
| 314 |
\unhbox\@ne |
| 315 |
\let\LT@old@row\LT@save@row |
| 316 |
\global\let\LT@save@row\@empty |
| 317 |
\count@\LT@cols |
| 318 |
\loop |
| 319 |
\unskip |
| 320 |
\setbox\tw@\lastbox |
| 321 |
\ifhbox\tw@ |
| 322 |
\LT@def@row |
| 323 |
\advance\count@\m@ne |
| 324 |
\repeat}% |
| 325 |
\ifx\LT@@save@row\@undefined |
| 326 |
\let\LT@@save@row\LT@save@row |
| 327 |
\fi} |
| 328 |
\def\LT@def@row{% |
| 329 |
\let\LT@entry\or |
| 330 |
\edef\@tempa{% |
| 331 |
\ifcase\expandafter\count@\LT@old@row |
| 332 |
\else |
| 333 |
{1}{0pt}% |
| 334 |
\fi}% |
| 335 |
\let\LT@entry\relax |
| 336 |
\xdef\LT@save@row{% |
| 337 |
\LT@entry |
| 338 |
\expandafter\LT@max@sel\@tempa |
| 339 |
\LT@save@row}} |
| 340 |
\def\LT@max@sel#1#2{% |
| 341 |
{\ifdim#2=\wd\tw@ |
| 342 |
#1% |
| 343 |
\else |
| 344 |
\number\c@LT@chunks |
| 345 |
\fi}% |
| 346 |
{\the\wd\tw@}} |
| 347 |
\def\LT@hline{% |
| 348 |
\noalign{\ifnum0=`}\fi |
| 349 |
\penalty\@M |
| 350 |
\futurelet\@let@token\LT@@hline} |
| 351 |
\def\LT@@hline{% |
| 352 |
\ifx\@let@token\hline |
| 353 |
\global\let\@gtempa\@gobble |
| 354 |
\gdef\LT@sep{\penalty-\@medpenalty\vskip\doublerulesep}% |
| 355 |
\else |
| 356 |
\global\let\@gtempa\@empty |
| 357 |
\gdef\LT@sep{\penalty-\@lowpenalty\vskip-\arrayrulewidth}% |
| 358 |
\fi |
| 359 |
\ifnum0=`{\fi}% |
| 360 |
\multispan\LT@cols |
| 361 |
\unskip\leaders\hrule\@height\arrayrulewidth\hfill\cr |
| 362 |
\noalign{\LT@sep}% |
| 363 |
\multispan\LT@cols |
| 364 |
\unskip\leaders\hrule\@height\arrayrulewidth\hfill\cr |
| 365 |
\noalign{\penalty\@M}% |
| 366 |
\@gtempa} |
| 367 |
\def\LT@caption{% |
| 368 |
\noalign\bgroup |
| 369 |
\@ifnextchar[{\egroup\LT@c@ption\@firstofone}\LT@capti@n} |
| 370 |
\def\LT@c@ption#1[#2]#3{% |
| 371 |
\LT@makecaption#1\fnum@table{#3}% |
| 372 |
\def\@tempa{#2}% |
| 373 |
\ifx\@tempa\@empty\else |
| 374 |
{\let\\\space |
| 375 |
\addcontentsline{lot}{table}{\protect\numberline{\thetable}{#2}}}% |
| 376 |
\fi} |
| 377 |
\def\LT@capti@n{% |
| 378 |
\@ifstar |
| 379 |
{\egroup\LT@c@ption\@gobble[]}% |
| 380 |
{\egroup\@xdblarg{\LT@c@ption\@firstofone}}} |
| 381 |
\def\LT@makecaption#1#2#3{% |
| 382 |
\LT@mcol\LT@cols c{\hbox to\z@{\hss\parbox[t]\LTcapwidth{% |
| 383 |
\sbox\@tempboxa{#1{#2: }#3}% |
| 384 |
\ifdim\wd\@tempboxa>\hsize |
| 385 |
#1{#2: }#3% |
| 386 |
\else |
| 387 |
\hbox to\hsize{\hfil\box\@tempboxa\hfil}% |
| 388 |
\fi |
| 389 |
\endgraf\vskip\baselineskip}% |
| 390 |
\hss}}} |
| 391 |
\def\LT@output{% |
| 392 |
\ifnum\outputpenalty <-\@Mi |
| 393 |
\ifnum\outputpenalty > -\LT@end@pen |
| 394 |
\LT@err{floats and marginpars not allowed in a longtable}\@ehc |
| 395 |
\else |
| 396 |
\setbox\z@\vbox{\unvbox\@cclv}% |
| 397 |
\ifdim \ht\LT@lastfoot>\ht\LT@foot |
| 398 |
\dimen@\pagegoal |
| 399 |
\advance\dimen@-\ht\LT@lastfoot |
| 400 |
\ifdim\dimen@<\ht\z@ |
| 401 |
\setbox\@cclv\vbox{\unvbox\z@\copy\LT@foot\vss}% |
| 402 |
\@makecol |
| 403 |
\@outputpage |
| 404 |
\setbox\z@\vbox{\box\LT@head}% |
| 405 |
\fi |
| 406 |
\fi |
| 407 |
\global\@colroom\@colht |
| 408 |
\global\vsize\@colht |
| 409 |
\vbox |
| 410 |
{\unvbox\z@\box\ifvoid\LT@lastfoot\LT@foot\else\LT@lastfoot\fi}% |
| 411 |
\fi |
| 412 |
\else |
| 413 |
\setbox\@cclv\vbox{\unvbox\@cclv\copy\LT@foot\vss}% |
| 414 |
\@makecol |
| 415 |
\@outputpage |
| 416 |
\global\vsize\@colroom |
| 417 |
\copy\LT@head\nobreak |
| 418 |
\fi} |
| 419 |
\def\LT@end@hd@ft#1{% |
| 420 |
\LT@echunk |
| 421 |
\ifx\LT@start\endgraf |
| 422 |
\LT@err |
| 423 |
{Longtable head or foot not at start of table}% |
| 424 |
{Increase LTchunksize}% |
| 425 |
\fi |
| 426 |
\setbox#1\box\z@ |
| 427 |
\LT@get@widths |
| 428 |
\LT@bchunk} |
| 429 |
\def\endfirsthead{\LT@end@hd@ft\LT@firsthead} |
| 430 |
\def\endhead{\LT@end@hd@ft\LT@head} |
| 431 |
\def\endfoot{\LT@end@hd@ft\LT@foot} |
| 432 |
\def\endlastfoot{\LT@end@hd@ft\LT@lastfoot} |
| 433 |
\def\LT@startpbox#1{% |
| 434 |
\bgroup |
| 435 |
\color@begingroup |
| 436 |
\let\@footnotetext\LT@p@ftntext |
| 437 |
\setlength\hsize{#1}% |
| 438 |
\@arrayparboxrestore |
| 439 |
\vrule \@height \ht\@arstrutbox \@width \z@} |
| 440 |
\def\LT@endpbox{% |
| 441 |
\@finalstrut\@arstrutbox |
| 442 |
\color@endgroup |
| 443 |
\egroup |
| 444 |
\the\LT@p@ftn |
| 445 |
\global\LT@p@ftn{}% |
| 446 |
\hfil} |
| 447 |
\def\LT@p@ftntext#1{% |
| 448 |
\edef\@tempa{\the\LT@p@ftn\noexpand\footnotetext[\the\c@footnote]}% |
| 449 |
\global\LT@p@ftn\expandafter{\@tempa{#1}}}% |
| 450 |
\endinput |
| 451 |
%% |
| 452 |
%% End of file `longtable.sty'. |