| 1 |
% longtable.4ht (2025-12-02-14:49), generated from tex4ht-4ht.tex |
| 2 |
% Copyright 1997-2009 Eitan M. Gurari |
| 3 |
% Copyright 2009-2025 TeX Users Group |
| 4 |
% |
| 5 |
% This work may be distributed and/or modified under the |
| 6 |
% conditions of the LaTeX Project Public License, either |
| 7 |
% version 1.3c of this license or (at your option) any |
| 8 |
% later version. The latest version of this license is in |
| 9 |
% https://www.latex-project.org/lppl.txt |
| 10 |
% and version 1.3c or later is part of all distributions |
| 11 |
% of LaTeX version 2005/12/01 or later. |
| 12 |
% |
| 13 |
% This work has the LPPL maintenance status "maintained". |
| 14 |
% |
| 15 |
% The Current Maintainer of this work |
| 16 |
% is the TeX4ht Project <https://tug.org/tex4ht>. |
| 17 |
% |
| 18 |
% If you modify this program, changing the |
| 19 |
% version identification would be appreciated. |
| 20 |
\immediate\write-1{version 2025-12-02-14:49} |
| 21 |
|
| 22 |
\def\:tempc[#1]#2{% |
| 23 |
\gHAdvance\float:cnt 1 |
| 24 |
\gHAssign\capt:cnt0 |
| 25 |
\hbox{\def\flt:anchor{}\get:cptg}% |
| 26 |
% |
| 27 |
\def\Clr{#2}\a:VBorder |
| 28 |
\HAssign\ar:cnt0 |
| 29 |
\let\HAlign\empty |
| 30 |
% |
| 31 |
\def\aa:longtable{% |
| 32 |
\gdef\aa:longtable{\let\HRow\lt:sv |
| 33 |
\HAdvance\HRow by 1 \global\let\:MkHalign:\lt:MkHalign:}% |
| 34 |
\global\setbox\LT:box\vbox{\a:longtable}% |
| 35 |
\global\let\lt:MkHalign:\:MkHalign:}% |
| 36 |
\def\bb:longtable{% |
| 37 |
\ifHCond \global\let\bb:longtable\empty |
| 38 |
\global\setbox\LT:ebox=\vbox{{\ht:everypar{}\leavevmode}\b:longtable}% |
| 39 |
\global\HCondfalse |
| 40 |
\fi} |
| 41 |
% |
| 42 |
\refstepcounter{table}\stepcounter{LT@tables}% |
| 43 |
\if l#1% |
| 44 |
\LTleft\z@ \LTright\fill |
| 45 |
\else\if r#1% |
| 46 |
\LTleft\fill \LTright\z@ |
| 47 |
\else\if c#1% |
| 48 |
\LTleft\fill \LTright\fill |
| 49 |
\fi\fi\fi |
| 50 |
\let\LT@mcol\multicolumn |
| 51 |
\let\LT@@tabarray\@tabarray |
| 52 |
\let\LT@@hl\hline |
| 53 |
\def\@tabarray{% |
| 54 |
\let\hline\LT@@hl |
| 55 |
\LT@@tabarray}% |
| 56 |
\let\\\LT@tabularcr\let\tabularnewline\\% |
| 57 |
\let\newpage\empty |
| 58 |
\let\pagebreak\empty |
| 59 |
\let\nopagebreak\empty |
| 60 |
% |
| 61 |
\let\hline\LT@hline \let\kill\LT@kill\let\caption\LT@caption |
| 62 |
\@tempdima\ht\strutbox |
| 63 |
\let\@endpbox\LT@endpbox |
| 64 |
\ifx\extrarowheight\@undefined |
| 65 |
\let\@acol\@tabacol |
| 66 |
\let\@classz\@tabclassz \let\@classiv\@tabclassiv |
| 67 |
\def\@startpbox{\vtop\LT@startpbox}% |
| 68 |
\let\@@startpbox\@startpbox |
| 69 |
\let\@@endpbox\@endpbox |
| 70 |
\let\LT@LL@FM@cr\@tabularcr |
| 71 |
\else |
| 72 |
\advance\@tempdima\extrarowheight |
| 73 |
\col@sep\tabcolsep |
| 74 |
\let\@startpbox\LT@startpbox\let\LT@LL@FM@cr\@arraycr |
| 75 |
\fi |
| 76 |
\setbox\@arstrutbox\hbox{}% |
| 77 |
\let\@sharp##\let\protect\relax |
| 78 |
\begingroup |
| 79 |
\@mkpream{#2}% |
| 80 |
\xdef\LT@bchunk{% |
| 81 |
\global\advance\c@LT@chunks\@ne |
| 82 |
\global\LT@rows\z@\setbox\z@\vbox\bgroup |
| 83 |
\LT@setprevdepth |
| 84 |
\everycr{}\tabskip\LTleft\noexpand\MkHalign\noexpand\@sharp |
| 85 |
{\tabskip\z@ \@arstrut \@preamble \tabskip\LTright}% |
| 86 |
}% |
| 87 |
\tmp:cnt=0 |
| 88 |
\global\let\:tempa\empty |
| 89 |
\loop\ifnum \ar:cnt>\tmp:cnt |
| 90 |
\advance\tmp:cnt by 1 |
| 91 |
\expandafter\ifx \csname @testpach \the\tmp:cnt\endcsname\relax |
| 92 |
\else |
| 93 |
\xdef\:tempa{% |
| 94 |
\:tempa |
| 95 |
\def \expandafter\noexpand |
| 96 |
\csname @testpach \the\tmp:cnt\endcsname{\csname @testpach |
| 97 |
\the\tmp:cnt\endcsname}}% |
| 98 |
\expandafter\let\csname @testpach \the\tmp:cnt\endcsname\relax |
| 99 |
\fi |
| 100 |
\repeat |
| 101 |
\aftergroup\:tempa |
| 102 |
\xdef\:temp{% |
| 103 |
\def\noexpand\HAlign{\HAlign}% |
| 104 |
\def\noexpand\ar:cnt{\ar:cnt}}\aftergroup\:temp |
| 105 |
% |
| 106 |
\endgroup |
| 107 |
\LT@cols\ar:cnt |
| 108 |
% |
| 109 |
\LT@make@row |
| 110 |
\m@th% \let\par\@empty <- this causes fatal error with current LaTeX settings for paragraphs |
| 111 |
\everycr{}\lineskip\z@\baselineskip\z@ |
| 112 |
\ifx \EndPicture\:UnDef |
| 113 |
\SaveMkHalignConfig \ifx \recall:ar\:UnDef |
| 114 |
\edef\recall:ar{% |
| 115 |
\noexpand\ifx \noexpand\EndPicture\noexpand\:UnDef \noexpand\else |
| 116 |
\arrayrulewidth\the\arrayrulewidth |
| 117 |
\doublerulesep\the\doublerulesep |
| 118 |
\arraycolsep\the\arraycolsep |
| 119 |
\tabcolsep\the\tabcolsep |
| 120 |
\noexpand\fi }% |
| 121 |
\fi |
| 122 |
\arrayrulewidth\z@ \doublerulesep\z@ |
| 123 |
\arraycolsep\z@ \tabcolsep\z@ |
| 124 |
\Configure{MkHalign} |
| 125 |
\aa:longtable |
| 126 |
{\bb:longtable \ProperTrTrue} |
| 127 |
{\a:putHBorder\InitHBorder \ifProperTr{\c:longtable}} |
| 128 |
{\ifProperTr{\d:longtable}\a:putHBorder\InitHBorder}% |
| 129 |
{\ifProperTr{\e:longtable}\RecallMkHalignConfig\recall:ar} |
| 130 |
{\ifProperTr{\f:longtable}} |
| 131 |
% |
| 132 |
\let\@sharp\relax |
| 133 |
\else \let\@sharp##\fi |
| 134 |
\LT@bchunk} |
| 135 |
\HLet\LT@array\:tempc |
| 136 |
\def\:tempc{% |
| 137 |
\crcr\LT@save@row\cr |
| 138 |
\ifx \EndPicture\:UnDef \EndMkHalign\else \egroup\fi |
| 139 |
% |
| 140 |
\global\setbox\@ne\lastbox \unskip |
| 141 |
\egroup} |
| 142 |
\HLet\LT@echunk\:tempc |
| 143 |
\let\:tempc\LT@startpbox |
| 144 |
\append:defI\:tempc{\everypar{\HtmlPar}\a:longtableparbox}% |
| 145 |
\HLet\LT@startpbox\:tempc |
| 146 |
\NewConfigure{longtableparbox}{1} |
| 147 |
\NewConfigure{longtable}{6} |
| 148 |
\csname newbox\endcsname\LT:box |
| 149 |
\csname newbox\endcsname\LT:ebox |
| 150 |
\def\:tempc{% |
| 151 |
\ifvoid\LT@head\else |
| 152 |
\ifvoid\LT@firsthead |
| 153 |
\global\setbox\LT@firsthead=\hbox{\box\LT@head}% |
| 154 |
\else |
| 155 |
\global\setbox\tmp:bx=\hbox{\box\LT@head}% |
| 156 |
\fi\fi% |
| 157 |
\box\LT:box% |
| 158 |
\ifvoid\LT@firsthead\copy\LT@head\else\box\LT@firsthead\fi\nobreak |
| 159 |
\output{\LT@output} |
| 160 |
} |
| 161 |
\HLet\LT@start\:tempc |
| 162 |
\let\:tempc\endlongtable |
| 163 |
\append:def\:tempc{\box\LT:ebox} |
| 164 |
\pend:def\:tempc{\global\HCondtrue} |
| 165 |
\HLet\endlongtable\:tempc |
| 166 |
\let\:tempc\LT@ntabularcr |
| 167 |
\pend:def\:tempc{\global\let\lt:sv\HRow} |
| 168 |
\HLet\LT@ntabularcr\:tempc |
| 169 |
\let\:tempc\LT@end@hd@ft |
| 170 |
\pend:defI\:tempc{\global\let\lt:sv\HRow} |
| 171 |
\HLet\LT@end@hd@ft\:tempc |
| 172 |
%\def\:tempc{\global\let\lt:sv\HRow} |
| 173 |
%\HLet\LT@kill\:tempc |
| 174 |
\def\LT@rebox#1\bgroup{% |
| 175 |
#1\bgroup |
| 176 |
\unskip |
| 177 |
} |
| 178 |
\let\:tempc\LT@kill |
| 179 |
\pend:def\:tempc{\global\let\lt:sv\HRow} |
| 180 |
\HLet\LT@kill\:tempc |
| 181 |
\let\LT:argtabularcr\LT@argtabularcr |
| 182 |
\def\:tempc{\global\let\lt:sv\HRow \LT:argtabularcr} |
| 183 |
\HLet\LT@argtabularcr\:tempc |
| 184 |
\ifx \tmp:bx\:UnDef \csname newbox\endcsname \tmp:bx \fi |
| 185 |
%\def\:tempc{\LT@end@hd@ft\tmp:bx} |
| 186 |
%\HLet\endhead\:tempc |
| 187 |
% \def\:tempc{\LT@end@hd@ft\tmp:bx} |
| 188 |
% \HLet\endfoot\:tempc |
| 189 |
\pend:def\LT@output{% |
| 190 |
\ifvoid\LT@foot\else |
| 191 |
\ifvoid\LT@lastfoot |
| 192 |
\global\setbox\LT@lastfoot=\hbox{\box\LT@foot}% |
| 193 |
\else |
| 194 |
\global\setbox\tmp:bx=\hbox{\box\LT@foot}% |
| 195 |
\fi\fi |
| 196 |
} |
| 197 |
\def\:tempc{\global\HCondtrue \LT@end@hd@ft\LT@lastfoot} |
| 198 |
\HLet\endlastfoot\:tempc |
| 199 |
\def\LT@tabularcr{% |
| 200 |
\relax\iffalse{\fi\ifnum0=`}\fi |
| 201 |
\@ifstar |
| 202 |
{\LT@t@bularcr}% |
| 203 |
{\LT@t@bularcr}} |
| 204 |
|
| 205 |
\def\:tempc{\a:hline} |
| 206 |
\HLet\LT@hline\:tempc |
| 207 |
|
| 208 |
\def\:tempc{% |
| 209 |
\o:noalign:\bgroup \gHAdvance\TitleCount 1 |
| 210 |
\@ifnextchar[{\egroup\LT@c@ption\@firstofone}\LT@capti@n} |
| 211 |
\HLet\LT@caption\:tempc |
| 212 |
\NewConfigure{longtablecaption}{4} |
| 213 |
\def\:tempc#1#2#3{% |
| 214 |
\o:noalign:{\a:longtablecaption #1{\cap:ref{#2}}\if\relax\detokenize{#1}\relax\else\b:longtablecaption\fi\c:longtablecaption#3\d:longtablecaption |
| 215 |
\endgraf}%\vskip\baselineskip <- this caused error in https://tex.stackexchange.com/q/682383/2891 |
| 216 |
} |
| 217 |
\HLet\LT@makecaption\:tempc |
| 218 |
\def\:tempc#1[#2]#3{% |
| 219 |
\LT@makecaption#1\fnum@table{#3}% |
| 220 |
\cur:lbl{}% |
| 221 |
\def\@tempa{#2}% |
| 222 |
\ifx\@tempa\@empty\else% |
| 223 |
{\let\\\space% |
| 224 |
\protect:wrtoc% |
| 225 |
\edef\:temp{#2}% |
| 226 |
\edef\:temp{\the\:tokwrite{\string\doTocEntry% |
| 227 |
\string\toclot% |
| 228 |
{\thetable}{\string\csname\space a:TocLink\string\endcsname% |
| 229 |
{\FileNumber}{\cur:th \:currentlabel}{}{\ifx\:temp\empty\else \ignorespaces #2\fi}}% |
| 230 |
{}\relax}}\:temp% |
| 231 |
}% |
| 232 |
\fi% |
| 233 |
} |
| 234 |
|
| 235 |
\HLet\LT@c@ption\:tempc |
| 236 |
|
| 237 |
\Hinput{longtable} |
| 238 |
\endinput |
| 239 |
|