diff options
author | Norbert Preining <norbert@preining.info> | 2022-04-29 03:00:51 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-04-29 03:00:51 +0000 |
commit | 871577883bd14da9df6a3b85bae42337e392f583 (patch) | |
tree | 1e27a0d5b1a66a08b1f634fab339f60c528995cb /support/TeX4ht | |
parent | af956ba2c2710e269fb7eed018809aa08da5bd40 (diff) |
CTAN sync 202204290300
Diffstat (limited to 'support/TeX4ht')
-rw-r--r-- | support/TeX4ht/source/ChangeLog | 9 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-4ht.tex | 22 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-html4.tex | 5 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-ooffice.tex | 5 |
4 files changed, 37 insertions, 4 deletions
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 <michal.h21@gmail.com> + + * 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 <michal.h21@gmail.com> * 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 +>>> + + +\<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 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{<caption class="longtable">}\par\ShowPar\HCode{<span class="id">}}{:\ }{\HCode{</span><span class="content">}}{\HCode{</span>}\ifvmode\IgnorePar\fi\EndP\HCode{</caption>}} + +\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{<table:table-row \Hnewline}\halignTR\HCode{ table:style-name="TBL-\TableNo-\HRow-">}} {\HCode{</table:table-row>}} - {\HCode{<table:table-cell + {\edef\cell:style:name{}% suppress compilation error + \HCode{<table:table-cell \ifnum \HMultispan>1 table:number-columns-spanned="\HMultispan"\fi \space table:style-name="TBL-\TableNo-\HRow-\HCol" ><text:p>}|<td save EndP|>% |<start array par box|>\PushStack\Table:Stck\TableNo} |