[tex4ht-commits] [SCM] tex4ht updated: r1402 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Thu Nov 2 16:53:57 CET 2023
Author: michal_h21
Date: 2023-11-02 15:53:57 +0000 (Thu, 02 Nov 2023)
New Revision: 1402
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
emulate tabu using tabularx
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2023-11-01 11:17:59 UTC (rev 1401)
+++ trunk/lit/ChangeLog 2023-11-02 15:53:57 UTC (rev 1402)
@@ -1,9 +1,14 @@
+2023-11-02 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (tabu.4ht, usepackage.4ht): use Tabularx as a
+ emulation for Tabu.
+ https://tex.stackexchange.com/a/238155/2891
+
2023-11-01 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-html4.4ht: fixed support for font sizes with decimal points
in the `p-width` option.
-
2023-10-31 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-4ht.tex (enotez.4ht),
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2023-11-01 11:17:59 UTC (rev 1401)
+++ trunk/lit/tex4ht-4ht.tex 2023-11-02 15:53:57 UTC (rev 1402)
@@ -11010,6 +11010,7 @@
% Copyright 2018 TeX Users Group
|<TeX4ht license text|>
|<tabu config|>
+|<tabu redefine env|>
\Hinput{tabu}
\endinput
>>> \AddFile{9}{tabu}
@@ -11062,7 +11063,21 @@
}% \tabu at setup
>>>
+\<tabu redefine env\><<<
+\def\:tempa#1#{%
+ \setbox\z@=\hbox#1{}% this is necessary to support \begin{tabu} to 7cm{...}
+ \ifvmode\IgnorePar\fi\EndP\let\endtabu\endtabularx\tabularx{\textwidth}%
+}
+\HLet\tabu\:tempa
+>>>
+We need to load the tabularx package, because we use it instead of Tabu for actual tables
+
+\<add to usepackage\><<<
+\AddToHook{package/tabu/before}{\RequirePackage{tabularx}}
+>>>
+
+
%%%%%%%%%%%%%%%%%%%%%%%%
\Section{threeparttable}
%%%%%%%%%%%%%%%%%%%%%%%%
More information about the tex4ht-commits
mailing list.