summaryrefslogtreecommitdiff
path: root/support/TeX4ht/source/tex4ht-4ht.tex
diff options
context:
space:
mode:
Diffstat (limited to 'support/TeX4ht/source/tex4ht-4ht.tex')
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex22
1 files changed, 21 insertions, 1 deletions
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex
index eb4ca2f77d..700179e6c1 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1119 2022-04-26 15:53:45Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1121 2022-04-28 13:36:29Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2022 TeX Users Group
@@ -10150,6 +10150,12 @@ Fix for the \Link[https://puszcza.gnu.org.ua/bugs/?437]{}{}starred linebreak iss
\o:noalign:\bgroup \gHAdvance\TitleCount 1
\@ifnextchar[{\egroup\LT@c@ption\@firstofone}\LT@capti@n}
\HLet\LT@caption\:tempc
+>>>
+
+
+\<old longtable makecaption\><<<
+% this code is not used anymore, it produces spurious table cells,
+% resulting in wrong structure
\def\:tempc#1#2#3{%
\LT@mcol\LT@cols c{\hbox{\parbox[t]\LTcapwidth{%
\cptA: #1{\cap:ref{#2}}\if\relax\detokenize{#1}\relax\else\cptB:\fi\cptC:#3\cptD:
@@ -10157,6 +10163,20 @@ Fix for the \Link[https://puszcza.gnu.org.ua/bugs/?437]{}{}starred linebreak iss
\HLet\LT@makecaption\:tempc
>>>
+Captions in Longtable are placed inside of the table structure.
+We need to use special configuration to produce correct rendering,
+normal code for caption will not work.
+
+\Link[https://tex.stackexchange.com/a/642350/2891] More details\EndLink
+
+\<longtable captions\><<<
+\NewConfigure{longtablecaption}{4}
+\def\:tempc#1#2#3{%
+ \a:longtablecaption #1{\cap:ref{#2}}\if\relax\detokenize{#1}\relax\else\b:longtablecaption\fi\c:longtablecaption#3\d:longtablecaption
+ \endgraf\vskip\baselineskip}
+\HLet\LT@makecaption\:tempc
+>>>
+
\Link[https://puszcza.gnu.org.ua/bugs/?313]
Write table info to the LOT
\EndLink