13.5 longtable.sty

<..longtable.4ht..>
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % longtable.4ht                         2014-07-12-22:36 %
 % Copyright (C) 1997--2009       Eitan M. Gurari         %
 <.TeX4ht copyright.>
    <.longtable code.>
    <.longtable hline.>
    <.longtable captions.>
 \Hinput{longtable}
 \endinput
 -_-_-

longtable.sty | latex

<..longtable code..>
 \def\:tempc[#1]#2{%
   <.tags for captions, empty.>%
   <.init conds for longtable.>%
   \refstepcounter{table}\stepcounter{LT@tables}%
   \if l#1%
     \LTleft\z@ \LTright\fill
   \else\if r#1%
     \LTleft\fill \LTright\z@
   \else\if c#1%
     \LTleft\fill \LTright\fill
   \fi\fi\fi
   \let\LT@mcol\multicolumn
   \let\LT@@tabarray\@tabarray
   \let\LT@@hl\hline
   \def\@tabarray{%
     \let\hline\LT@@hl
     \LT@@tabarray}%
   \let\\\LT@tabularcr\let\tabularnewline\\%
   <.longtable page breaks.>%
   \let\hline\LT@hline \let\kill\LT@kill\let\caption\LT@caption
   \@tempdima\ht\strutbox
   \let\@endpbox\LT@endpbox
   \ifx\extrarowheight\@undefined
     \let\@acol\@tabacol
     \let\@classz\@tabclassz \let\@classiv\@tabclassiv
     \def\@startpbox{\vtop\LT@startpbox}%
     \let\@@startpbox\@startpbox
     \let\@@endpbox\@endpbox
     \let\LT@LL@FM@cr\@tabularcr
   \else
     \advance\@tempdima\extrarowheight
     \col@sep\tabcolsep
     \let\@startpbox\LT@startpbox\let\LT@LL@FM@cr\@arraycr
   \fi
   \setbox\@arstrutbox\hbox{}%
   \let\@sharp##\let\protect\relax
    \begingroup
     \@mkpream{#2}%
     \xdef\LT@bchunk{%
        \global\advance\c@LT@chunks\@ne
        \global\LT@rows\z@\setbox\z@\vbox\bgroup
        \LT@setprevdepth
        <.ialign for html longtable.>}%
        <.globalize HAlign and ar:cnt.>%
   \endgroup
   <.set LT@cols.>%
   \LT@make@row
   \m@th\let\par\@empty
   \everycr{}\lineskip\z@\baselineskip\z@
   \ifx \EndPicture\:UnDef
      \SaveMkHalignConfig <.longtable configuration for MkHalign.>%
      \let\@sharp=\relax
   \else \let\@sharp##\fi
   \LT@bchunk}
 \HLet\LT@array\:tempc
 -_-_-

<..longtable page breaks..>
 \let\newpage\empty
 \let\pagebreak\empty
 \let\nopagebreak\empty
 -_-_-

<..globalize HAlign and ar:cnt..>+
 \xdef\:temp{%
    \def\noexpand\HAlign{\HAlign}%
    \def\noexpand\ar:cnt{\ar:cnt}}\aftergroup\:temp
 -_-_-

<..globalize ar:cnt for array.sty..>
 \xdef\:temp{%
    \def\noexpand\HAlign{\HAlign}%
    \def\noexpand\ar:cnt{\ar:cnt}}\aftergroup\:temp
 -_-_-

<..set LT@cols..>
 \LT@cols=\ar:cnt
 -_-_-

<..longtable code..>+
 \def\:tempc{%
   \crcr\LT@save@row\cr
   <.end longtable chunk.>%
   \global\setbox\@ne\lastbox    \unskip
   \egroup}
 \HLet\LT@echunk\:tempc
 -_-_-

<..end longtable chunk..>
 \ifx \EndPicture\:UnDef \EndMkHalign\else \egroup\fi
 -_-_-

<..longtable code..>+
 \let\:tempc\LT@startpbox
 \append:defI\:tempc{\everypar{\HtmlPar}\a:longtableparbox}%
 \HLet\LT@startpbox\:tempc
 \NewConfigure{longtableparbox}{1}
 -_-_-

<..longtable code..>+
 \NewConfigure{longtable}{6}
 -_-_-

<..ialign for html longtable..>
 \everycr{}\tabskip\LTleft\noexpand\MkHalign\noexpand\@sharp
    {\tabskip\z@ \@arstrut \@preamble \tabskip\LTright}%
 -_-_-

<..longtable configuration for MkHalign..>
 \ifx \recall:ar\:UnDef
    \edef\recall:ar{%
       \noexpand\ifx \noexpand\EndPicture\noexpand\:UnDef \noexpand\else
          \arrayrulewidth\the\arrayrulewidth
          \doublerulesep\the\doublerulesep
          \arraycolsep\the\arraycolsep
          \tabcolsep\the\tabcolsep
       \noexpand\fi }%
 \fi
 \arrayrulewidth\z@  \doublerulesep\z@
 \arraycolsep\z@     \tabcolsep\z@
 \Configure{MkHalign}
   \aa:longtable
   {\bb:longtable \ProperTrTrue}
   {\a:putHBorder\InitHBorder \ifProperTr{\c:longtable}}
   {\ifProperTr{\d:longtable}\a:putHBorder\InitHBorder}%
   {\ifProperTr{\e:longtable}\RecallMkHalignConfig\recall:ar}
   {\ifProperTr{\f:longtable}}
 -_-_-

<..init conds for longtable..>
 <.init conds for @mkpream.>%
 \def\aa:longtable{%
    \gdef\aa:longtable{\let\HRow=\lt:sv
        \HAdvance\HRow by 1 \global\let\:MkHalign:=\lt:MkHalign:}%
    \global\setbox\LT:box=\vbox{\a:longtable}%
    \global\let\lt:MkHalign:=\:MkHalign:}%
 \def\bb:longtable{%
    \ifHCond \global\let\bb:longtable=\empty
       \global\setbox\LT:ebox=\vbox{{\ht:everypar{}\leavevmode}\b:longtable}%
       \global\HCondfalse
    \fi}
 -_-_-

<..longtable code..>+
 \csname newbox\endcsname\LT:box
 \csname newbox\endcsname\LT:ebox
 \let\:tempc\LT@start
 \pend:def\:tempc{%
   \ifvoid\LT@head\else
      \ifvoid\LT@firsthead
         \global\setbox\LT@firsthead=\hbox{\box\LT@head}%
      \else
         \global\setbox\tmp:bx=\hbox{\box\LT@head}%
   \fi\fi
   \box\LT:box}
 \HLet\LT@start\:tempc
 \let\:tempc\endlongtable
 \append:def\:tempc{\box\LT:ebox}
 \pend:def\:tempc{\global\HCondtrue}
 \HLet\endlongtable\:tempc
 -_-_-

<..longtable code..>+
 \let\:tempc\LT@ntabularcr
 \pend:def\:tempc{\global\let\lt:sv=\HRow}
 \HLet\LT@ntabularcr\:tempc
 \let\:tempc\LT@end@hd@ft
 \pend:defI\:tempc{\global\let\lt:sv=\HRow}
 \HLet\LT@end@hd@ft\:tempc
 %\def\:tempc{\global\let\lt:sv=\HRow}
 %\HLet\LT@kill\:tempc
 \def\LT@rebox#1\bgroup{%
   #1\bgroup
   \unskip
 }
 \let\:tempc\LT@kill
 \pend:def\:tempc{\global\let\lt:sv\HRow}
 \HLet\LT@kill\:tempc
 \let\LT:argtabularcr=\LT@argtabularcr
 \def\:tempc{\global\let\lt:sv=\HRow  \LT:argtabularcr}
 \HLet\LT@argtabularcr\:tempc
 \ifx \tmp:bx\:UnDef \csname newbox\endcsname \tmp:bx \fi
 %\def\:tempc{\LT@end@hd@ft\tmp:bx}
 %\HLet\endhead\:tempc
 % \def\:tempc{\LT@end@hd@ft\tmp:bx}
 % \HLet\endfoot\:tempc
 \pend:def\LT@output{%
   \ifvoid\LT@foot\else
      \ifvoid\LT@lastfoot
         \global\setbox\LT@lastfoot=\hbox{\box\LT@foot}%
      \else
         \global\setbox\tmp:bx=\hbox{\box\LT@foot}%
   \fi\fi
 }
 \def\:tempc{\global\HCondtrue \LT@end@hd@ft\LT@lastfoot}
 \HLet\endlastfoot\:tempc
 -_-_-

<..longtable hline..>
 \def\:tempc{%
   \o:noalign:{\ifnum0=‘}\fi
     \penalty\@M
     \futurelet\@let@token\LT@@hline}
 \HLet\LT@hline\:tempc
 \def\:tempc{%
   \ifx\@let@token\hline
     \global\let\@gtempa\@gobble
     \gdef\LT@sep{\penalty-\@medpenalty\vskip\doublerulesep}%
   \else
     \global\let\@gtempa\@empty
     \gdef\LT@sep{\penalty-\@lowpenalty\vskip-\arrayrulewidth}%
   \fi
   \ifnum0=‘{\fi}%
   <.put longtable hline.>%
   \o:noalign:{\penalty\@M}%
   \@gtempa}
 \HLet\LT@@hline\:tempc
 -_-_-

<..put longtable hline..>
 \a:hline
 -_-_-

<..longtable captions..>
 \def\:tempc{%
   \o:noalign:\bgroup  \gHAdvance\TitleCount  1
     \@ifnextchar[{\egroup\LT@c@ption\@firstofone}\LT@capti@n}
 \HLet\LT@caption\:tempc
 \def\:tempc#1#2#3{%
   \LT@mcol\LT@cols c{\hbox{\parbox[t]\LTcapwidth{%
        \cptA: #1{\cap:ref{#2}}\cptB:\cptC:#3\cptD:
     \endgraf\vskip\baselineskip}}}}
 \HLet\LT@makecaption\:tempc
 -_-_-