2 %% This is file `longtable.sty',
3 %% generated with the docstrip utility.
5 %% The original source files were:
7 %% longtable.dtx (with options: `package')
9 %% This is a generated file.
11 %% The source is maintained by the LaTeX Project team and bug
12 %% reports for it can be opened at http://latex-project.org/bugs.html
13 %% (but please observe conditions on bug reports sent to that address!)
15 %% Copyright 1993-2016
16 %% The LaTeX3 Project and any individual authors listed elsewhere
19 %% This file was generated from file(s) of the Standard LaTeX `Tools Bundle'.
20 %% --------------------------------------------------------------------------
22 %% It may be distributed and/or modified under the
23 %% conditions of the LaTeX Project Public License, either version 1.3c
24 %% of this license or (at your option) any later version.
25 %% The latest version of this license is in
26 %% http://www.latex-project.org/lppl.txt
27 %% and version 1.3c or later is part of all distributions of LaTeX
28 %% version 2005/12/01 or later.
30 %% This file may only be distributed together with a copy of the LaTeX
31 %% `Tools Bundle'. You may however distribute the LaTeX `Tools Bundle'
32 %% without such generated files.
34 %% The list of all files belonging to the LaTeX `Tools Bundle' is
35 %% given in the file `manifest.txt'.
37 %% File: longtable.dtx Copyright (C) 1990-2001 David Carlisle
38 \NeedsTeXFormat{LaTeX2e}[1995/06/01]
39 \ProvidesPackage{longtable_doxygen}
40 [2014/10/28 v4.11 Multi-page Table package (DPC) - frozen version for doxygen]
41 \def\LT@err{\PackageError{longtable}}
42 \def\LT@warn{\PackageWarning{longtable}}
45 \LT@warn{Table \@width s have changed. Rerun LaTeX.\@gobbletwo}}%
46 \global\let\LT@final@warn\relax}
47 \DeclareOption{errorshow}{%
48 \def\LT@warn{\PackageInfo{longtable}}}
49 \DeclareOption{pausing}{%
51 \LT@err{#1}{This is not really an error}}}
53 \DeclareOption{final}{}
55 \newskip\LTleft \LTleft=\fill
56 \newskip\LTright \LTright=\fill
57 \newskip\LTpre \LTpre=\bigskipamount
58 \newskip\LTpost \LTpost=\bigskipamount
59 \newcount\LTchunksize \LTchunksize=20
60 \let\c@LTchunksize\LTchunksize
61 \newdimen\LTcapwidth \LTcapwidth=4in
68 \newcounter{LT@tables}
69 \newcounter{LT@chunks}[LT@tables]
70 \ifx\c@table\undefined
72 \def\fnum@table{\tablename~\thetable}
74 \ifx\tablename\undefined
78 \mathchardef\LT@end@pen=30000
81 \ifx\multicols\@undefined
83 \ifnum\col@number>\@ne
88 \LT@err{longtable not in 1-column mode}\@ehc
91 \@ifnextchar[\LT@array{\LT@array[x]}}
93 \refstepcounter{table}\stepcounter{LT@tables}%
95 \LTleft\z@ \LTright\fill
97 \LTleft\fill \LTright\z@
99 \LTleft\fill \LTright\fill
101 \let\LT@mcol\multicolumn
102 \let\LT@@tabarray\@tabarray
107 \let\\\LT@tabularcr\let\tabularnewline\\%
108 \def\newpage{\noalign{\break}}%
109 \def\pagebreak{\noalign{\ifnum`}=0\fi\@testopt{\LT@no@pgbk-}4}%
110 \def\nopagebreak{\noalign{\ifnum`}=0\fi\@testopt\LT@no@pgbk4}%
111 \let\hline\LT@hline \let\kill\LT@kill\let\caption\LT@caption
112 \@tempdima\ht\strutbox
113 \let\@endpbox\LT@endpbox
114 \ifx\extrarowheight\@undefined
116 \let\@classz\@tabclassz \let\@classiv\@tabclassiv
117 \def\@startpbox{\vtop\LT@startpbox}%
118 \let\@@startpbox\@startpbox
119 \let\@@endpbox\@endpbox
120 \let\LT@LL@FM@cr\@tabularcr
122 \advance\@tempdima\extrarowheight
124 \let\@startpbox\LT@startpbox\let\LT@LL@FM@cr\@arraycr
126 \setbox\@arstrutbox\hbox{\vrule
127 \@height \arraystretch \@tempdima
128 \@depth \arraystretch \dp \strutbox
130 \let\@sharp##\let\protect\relax
134 \global\advance\c@LT@chunks\@ne
135 \global\LT@rows\z@\setbox\z@\vbox\bgroup
137 \tabskip\LTleft \noexpand\halign to\hsize\bgroup
138 \tabskip\z@ \@arstrut \@preamble \tabskip\LTright \cr}%
140 \expandafter\LT@nofcols\LT@bchunk&\LT@nofcols
143 \everycr{}\lineskip\z@\baselineskip\z@
145 \def\LT@no@pgbk#1[#2]{\penalty #1\@getpen{#2}\ifnum`{=0\fi}}
147 \let\LT@start\endgraf
148 \endgraf\penalty\z@\vskip\LTpre
150 \advance\dimen@ \ht\ifvoid\LT@firsthead\LT@head\else\LT@firsthead\fi
151 \advance\dimen@ \dp\ifvoid\LT@firsthead\LT@head\else\LT@firsthead\fi
152 \advance\dimen@ \ht\LT@foot
156 \setbox\tw@\vsplit\tw@ to \ht\@arstrutbox
157 \setbox\tw@\vbox{\unvbox\tw@}%
160 \ifdim\ht\@arstrutbox>\ht\tw@\@arstrutbox\else\tw@\fi
162 \ifdim\dp\@arstrutbox>\dp\tw@\@arstrutbox\else\tw@\fi
163 \advance\dimen@ -\pagegoal
164 \ifdim \dimen@>\z@\vfil\break\fi
165 \global\@colroom\@colht
167 \advance\vsize-\ht\LT@foot
168 \global\advance\@colroom-\ht\LT@foot
169 \dimen@\pagegoal\advance\dimen@-\ht\LT@foot\pagegoal\dimen@
172 \ifvoid\LT@firsthead\copy\LT@head\else\box\LT@firsthead\fi\nobreak
177 \let\LT@entry\LT@entry@chop
178 \xdef\LT@save@row{\LT@save@row}}%
184 {\let\LT@entry\LT@entry@write\immediate\write\@auxout{%
185 \gdef\expandafter\noexpand
186 \csname LT@\romannumeral\c@LT@tables\endcsname
189 \ifx\LT@save@row\LT@@save@row
191 \LT@warn{Column \@width s have changed\MessageBreak
195 \endgraf\penalty -\LT@end@pen
197 \global\@mparbottom\z@
199 \endgraf\penalty\z@\addvspace\LTpost
200 \ifvoid\footins\else\insert\footins{}\fi}
202 \futurelet\@let@token\LT@n@fcols}
205 \ifx\@let@token\LT@nofcols
208 \expandafter\LT@nofcols
211 \relax\iffalse{\fi\ifnum0=`}\fi
213 {\def\crcr{\LT@crcr\noalign{\nobreak}}\let\cr\crcr
217 \let\LT@setprevdepth\relax
219 \global\advance\LT@rows\@ne
220 \ifnum\LT@rows=\LTchunksize
221 \gdef\LT@setprevdepth{%
223 \global\let\LT@setprevdepth\relax}%
224 \expandafter\LT@xtabularcr
227 \expandafter\LT@LL@FM@cr
230 \@ifnextchar[\LT@argtabularcr\LT@ntabularcr}
238 \def\LT@argtabularcr[#1]{%
241 \unskip\@xargarraycr{#1}%
251 \crcr\LT@save@row\cr\egroup
252 \global\setbox\@ne\lastbox
256 \ifhmode\@firstofone{&}\fi\omit
257 \ifnum#1=\c@LT@chunks
261 \def\LT@entry@chop#1#2{%
263 {\ifnum#1>\c@LT@chunks
268 \def\LT@entry@write{%
269 \noexpand\LT@entry^^J%
274 \expandafter\LT@rebox\LT@bchunk}
275 \def\LT@rebox#1\bgroup{%
281 \xdef\LT@save@row{\expandafter\LT@build@blank
282 \romannumeral\number\LT@cols 001 }}
283 \def\LT@build@blank#1{%
285 \noexpand\LT@entry{1}{0pt}%
286 \expandafter\LT@build@blank
289 \global\expandafter\let\expandafter\LT@save@row
290 \csname LT@\romannumeral\c@LT@tables\endcsname
291 \ifx\LT@save@row\relax
296 \ifcase\expandafter\expandafter\expandafter\LT@cols
297 \expandafter\@gobble\LT@save@row
304 \aftergroup\LT@blank@row
307 \let\setlongtables\relax
311 \let\LT@old@row\LT@save@row
312 \global\let\LT@save@row\@empty
321 \ifx\LT@@save@row\@undefined
322 \let\LT@@save@row\LT@save@row
327 \ifcase\expandafter\count@\LT@old@row
334 \expandafter\LT@max@sel\@tempa
336 \def\LT@max@sel#1#2{%
344 \noalign{\ifnum0=`}\fi
346 \futurelet\@let@token\LT@@hline}
348 \ifx\@let@token\hline
349 \global\let\@gtempa\@gobble
350 \gdef\LT@sep{\penalty-\@medpenalty\vskip\doublerulesep}%
352 \global\let\@gtempa\@empty
353 \gdef\LT@sep{\penalty-\@lowpenalty\vskip-\arrayrulewidth}%
357 \unskip\leaders\hrule\@height\arrayrulewidth\hfill\cr
360 \unskip\leaders\hrule\@height\arrayrulewidth\hfill\cr
361 \noalign{\penalty\@M}%
365 \@ifnextchar[{\egroup\LT@c@ption\@firstofone}\LT@capti@n}
366 \def\LT@c@ption#1[#2]#3{%
367 \LT@makecaption#1\fnum@table{#3}%
369 \ifx\@tempa\@empty\else
371 \addcontentsline{lot}{table}{\protect\numberline{\thetable}{#2}}}%
375 {\egroup\LT@c@ption\@gobble[]}%
376 {\egroup\@xdblarg{\LT@c@ption\@firstofone}}}
377 \def\LT@makecaption#1#2#3{%
378 \LT@mcol\LT@cols c{\hbox to\z@{\hss\parbox[t]\LTcapwidth{%
379 \sbox\@tempboxa{#1{#2: }#3}%
380 \ifdim\wd\@tempboxa>\hsize
383 \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
385 \endgraf\vskip\baselineskip}%
388 \ifnum\outputpenalty <-\@Mi
389 \ifnum\outputpenalty > -\LT@end@pen
390 \LT@err{floats and marginpars not allowed in a longtable}\@ehc
392 \setbox\z@\vbox{\unvbox\@cclv}%
393 \ifdim \ht\LT@lastfoot>\ht\LT@foot
395 \advance\dimen@-\ht\LT@lastfoot
397 \setbox\@cclv\vbox{\unvbox\z@\copy\LT@foot\vss}%
400 \setbox\z@\vbox{\box\LT@head}%
403 \global\@colroom\@colht
406 {\unvbox\z@\box\ifvoid\LT@lastfoot\LT@foot\else\LT@lastfoot\fi}%
409 \setbox\@cclv\vbox{\unvbox\@cclv\copy\LT@foot\vss}%
412 \global\vsize\@colroom
413 \copy\LT@head\nobreak
415 \def\LT@end@hd@ft#1{%
417 \ifx\LT@start\endgraf
419 {Longtable head or foot not at start of table}%
420 {Increase LTchunksize}%
425 \def\endfirsthead{\LT@end@hd@ft\LT@firsthead}
426 \def\endhead{\LT@end@hd@ft\LT@head}
427 \def\endfoot{\LT@end@hd@ft\LT@foot}
428 \def\endlastfoot{\LT@end@hd@ft\LT@lastfoot}
429 \def\LT@startpbox#1{%
431 \let\@footnotetext\LT@p@ftntext
432 \setlength\hsize{#1}%
434 \vrule \@height \ht\@arstrutbox \@width \z@}
436 \@finalstrut\@arstrutbox
441 %% added \long to prevent:
442 % LaTeX Warning: Command \LT@p@ftntext has changed.
444 % from the original repository (https://github.com/latex3/latex2e/blob/develop/required/tools/longtable.dtx):
445 % \changes{v4.15}{2021/03/28}
446 % {make long for gh/364}
447 % Inside the `p' column, just save up the footnote text in a token
449 \long\def\LT@p@ftntext#1{%
450 \edef\@tempa{\the\LT@p@ftn\noexpand\footnotetext[\the\c@footnote]}%
451 \global\LT@p@ftn\expandafter{\@tempa{#1}}}%
453 \@namedef{ver@longtable.sty}{2014/10/28 v4.11 Multi-page Table package (DPC) - frozen version for doxygen}
456 %% End of file `longtable.sty'.