diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-12 23:46:03 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-12 23:46:03 +0000 |
commit | 873660d1a83ece926fe7206288dda9c36b349c1b (patch) | |
tree | a48f77125c309a355b5d0eb58d6b24446abe9d62 /Master/texmf-dist/tex/generic/tex4ht/longtable.4ht | |
parent | 2939242967231097459df0fc3150fabc2f639111 (diff) |
generic 1
git-svn-id: svn://tug.org/texlive/trunk@613 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/longtable.4ht')
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/longtable.4ht | 197 |
1 files changed, 197 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/longtable.4ht b/Master/texmf-dist/tex/generic/tex4ht/longtable.4ht new file mode 100644 index 00000000000..4f9837a1f30 --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/longtable.4ht @@ -0,0 +1,197 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% longtable.4ht 2005-10-23-04:19 % +% Copyright (C) 1997--2005 Eitan M. Gurari % +% % +% This work may be distributed and/or modified under the % +% conditions of the LaTeX Project Public License, either % +% version 1.3 of this license or (at your option) any % +% later version. The latest version of this license is % +% in % +% http://www.latex-project.org/lppl.txt % +% and version 1.3 or later is part of all distributions % +% of LaTeX version 2003/12/01 or later. % +% % +% This work has the LPPL maintenance status "maintained".% +% % +% This Current Maintainer of this work % +% is Eitan M. Gurari. % +% % +% If you modify this program your changing its signature % +% with a directive of the following form will be % +% appreciated. % +% \message{signature} % +% % +% gurari@cse.ohio-state.edu % +% http://www.cse.ohio-state.edu/~gurari % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\immediate\write-1{version 2005-10-23-04:19} + + \def\LT@array[#1]#2{% + \gHAdvance\float:cnt 1 +\gHAssign\capt:cnt0 +\hbox{\def\flt:anchor{}\get:cptg}% +% + \def\Clr{#2}\a:VBorder +\HAssign\ar:cnt0 +\let\HAlign\empty +% +\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} +% + \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\\% + \def\newpage{\noalign{\break}}% + \def\pagebreak{\noalign{\ifnum`}=0\fi\@testopt{\LT@no@pgbk-}4}% + \def\nopagebreak{\noalign{\ifnum`}=0\fi\@testopt\LT@no@pgbk4}% + \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{\vrule + \@height \arraystretch \@tempdima + \@depth \arraystretch \dp \strutbox + \@width \z@}% + \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 + \everycr{}\tabskip\LTleft\noexpand\MkHalign\noexpand\@sharp + {\tabskip\z@ \@arstrut \@preamble \tabskip\LTright}% +}% + \tmp:cnt=0 +\global\let\:tempa\empty +\loop\ifnum \ar:cnt>\tmp:cnt + \advance\tmp:cnt by 1 + \expandafter\ifx \csname @testpach \the\tmp:cnt\endcsname\relax \else + \xdef\:tempa{% + \:tempa + \def \expandafter\noexpand + \csname @testpach \the\tmp:cnt\endcsname{\csname @testpach + \the\tmp:cnt\endcsname}}% + \expandafter\let\csname @testpach \the\tmp:cnt\endcsname\relax + \fi +\repeat +\aftergroup\:tempa +\xdef\:temp{% + \def\noexpand\HAlign{\HAlign}% + \def\noexpand\ar:cnt{\ar:cnt}}\aftergroup\:temp +% + \endgroup + \LT@cols\ar:cnt +% + \LT@make@row + \m@th\let\par\@empty + \everycr{}\lineskip\z@\baselineskip\z@ + \ifx \EndPicture\:UnDef + \SaveMkHalignConfig \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}} +% + \let\@sharp\relax + \else \let\@sharp##\fi + \LT@bchunk} +\def\LT@echunk{% + \crcr\LT@save@row\cr + \ifx \EndPicture\:UnDef \EndMkHalign\else \egroup\fi +% + \global\setbox\@ne\lastbox \unskip + \egroup} +\let\:tempc\LT@startpbox +\append:defI\:tempc{\everypar{\HtmlPar}\a:longtableparbox}% +\HLet\LT@startpbox\:tempc +\NewConfigure{longtableparbox}{1} +\NewConfigure{longtable}{6} +\csname newbox\endcsname\LT:box +\csname newbox\endcsname\LT:ebox +\pend:def\LT@start{\box\LT:box} +\append:def\endlongtable{\box\LT:ebox} +\pend:def\LT@ntabularcr{\global\let\lt:sv\HRow} +\pend:defI\LT@end@hd@ft{\global\let\lt:sv\HRow} +\def\LT@kill{\global\let\lt:sv\HRow} +\let\LT:argtabularcr\LT@argtabularcr +\def\LT@argtabularcr{\global\let\lt:sv\HRow \LT:argtabularcr} +\ifx \tmp:bx\:UnDef \csname newbox\endcsname \tmp:bx \fi +\def\endhead{\LT@end@hd@ft\tmp:bx} +\def\endfoot{\LT@end@hd@ft\tmp:bx} +\def\endlastfoot{\global\HCondtrue \LT@end@hd@ft\LT@lastfoot} +\pend:def\endlongtable{\global\HCondtrue} + + \def\LT@hline{% + \o:noalign:{\ifnum0=`}\fi + \penalty\@M + \futurelet\@let@token\LT@@hline} +\def\LT@@hline{% + \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}% + \a:hline +% + \o:noalign:{\penalty\@M}% + \@gtempa} + + \def\LT@caption{% + \o:noalign:\bgroup \gHAdvance\TitleCount 1 + \@ifnextchar[{\egroup\LT@c@ption\@firstofone}\LT@capti@n} +\def\LT@makecaption#1#2#3{% + \LT@mcol\LT@cols c{\hbox{\parbox[t]\LTcapwidth{% + \cptA: #1{\cap:ref{#2}}\cptB:\cptC:#3\cptD: + \endgraf\vskip\baselineskip}}}} + +\Hinput{longtable} +\endinput + |