From 871577883bd14da9df6a3b85bae42337e392f583 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 29 Apr 2022 03:00:51 +0000 Subject: CTAN sync 202204290300 --- support/TeX4ht/source/ChangeLog | 9 +++++++++ support/TeX4ht/source/tex4ht-4ht.tex | 22 +++++++++++++++++++++- support/TeX4ht/source/tex4ht-html4.tex | 5 ++++- support/TeX4ht/source/tex4ht-ooffice.tex | 5 +++-- 4 files changed, 37 insertions(+), 4 deletions(-) (limited to 'support/TeX4ht') diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog index 58146aa1e3..a4f4595666 100644 --- a/support/TeX4ht/source/ChangeLog +++ b/support/TeX4ht/source/ChangeLog @@ -1,3 +1,12 @@ +2022-04-28 Michal Hoftich + + * tex4ht-ooffice.tex (ooffice.4ht): added dummy definition of + \cell:style:name to prevent compilation error with longtable. + * tex4ht-4ht.tex (longtable.4ht), + * tex4ht-html4.tex (html4.4ht): fixed support for longtable + captions. + https://tex.stackexchange.com/a/642350/2891 + 2022-04-27 Michal Hoftich * tex4ht-html4.tex (html4.4ht): corrected class names for Ulem 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 +>>> + + +\<<< +% 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 + +\<<< +\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 diff --git a/support/TeX4ht/source/tex4ht-html4.tex b/support/TeX4ht/source/tex4ht-html4.tex index cd6cf2992e..72577ab696 100644 --- a/support/TeX4ht/source/tex4ht-html4.tex +++ b/support/TeX4ht/source/tex4ht-html4.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-html4.tex 1120 2022-04-27 10:47:56Z michal_h21 $ +% $Id: tex4ht-html4.tex 1121 2022-04-28 13:36:29Z michal_h21 $ % Compile 4 times: latex tex4ht-html4 % Copy html4.4ht into the work directory before all but the last compilation. % @@ -8169,6 +8169,9 @@ and the same for pic tabular. Why? \Css{div.longtable{text-align:center;}} \Css{table.longtable{margin-left:auto; margin-right: auto;}} \Configure{longtableparbox}{\IgnorePar\leavevmode\ShowPar\par} +\Configure{longtablecaption}{\ifvmode\IgnorePar\fi\EndP\HCode{}\par\ShowPar\HCode{}}{:\ }{\HCode{}}{\HCode{}\ifvmode\IgnorePar\fi\EndP\HCode{}} + +\Css{caption.longtable .id{font-weight:bold;}} >>> diff --git a/support/TeX4ht/source/tex4ht-ooffice.tex b/support/TeX4ht/source/tex4ht-ooffice.tex index eebe62995f..8e86f7e956 100644 --- a/support/TeX4ht/source/tex4ht-ooffice.tex +++ b/support/TeX4ht/source/tex4ht-ooffice.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-ooffice.tex 1108 2022-04-05 15:59:08Z michal_h21 $ +% $Id: tex4ht-ooffice.tex 1122 2022-04-28 15:04:04Z michal_h21 $ % compile 3 times: latex tex4ht-ooffice % htlatex tex4ht-ooffice "xhtml,4,sections+" % @@ -11976,7 +11976,8 @@ OO doesn't seem to hono mfenced {\HCode{}} {\HCode{}} - {\HCode{1 table:number-columns-spanned="\HMultispan"\fi \space table:style-name="TBL-\TableNo-\HRow-\HCol" >}|% |\PushStack\Table:Stck\TableNo} -- cgit v1.2.3