texlive[68735] Master/texmf-dist: emulate tabu with tabularx, tex4ht
commits+karl at tug.org
commits+karl at tug.org
Thu Nov 2 21:46:22 CET 2023
Revision: 68735
https://tug.org/svn/texlive?view=revision&revision=68735
Author: karl
Date: 2023-11-02 21:46:22 +0100 (Thu, 02 Nov 2023)
Log Message:
-----------
emulate tabu with tabularx, tex4ht r1402-03
Revision Links:
--------------
https://tug.org/svn/texlive?view=revision&revision=1402
Modified Paths:
--------------
trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
trunk/Master/texmf-dist/tex/generic/tex4ht/tabu.4ht
trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2023-11-02 19:57:02 UTC (rev 68734)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2023-11-02 20:46:22 UTC (rev 68735)
@@ -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/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2023-11-02 19:57:02 UTC (rev 68734)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2023-11-02 20:46:22 UTC (rev 68735)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1400 2023-10-31 16:57:08Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1403 2023-11-02 16:09:43Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2023 TeX Users Group
@@ -11007,9 +11007,10 @@
\<tabu.4ht\><<<
% tabu.4ht (|version), generated from |jobname.tex
-% Copyright 2018 TeX Users Group
+% Copyright 2018-2023 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}
%%%%%%%%%%%%%%%%%%%%%%%%
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/tabu.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/tabu.4ht 2023-11-02 19:57:02 UTC (rev 68734)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/tabu.4ht 2023-11-02 20:46:22 UTC (rev 68735)
@@ -1,5 +1,5 @@
-% tabu.4ht (2018-12-30-09:31), generated from tex4ht-4ht.tex
-% Copyright 2018 TeX Users Group
+% tabu.4ht (2023-11-02-13:26), generated from tex4ht-4ht.tex
+% Copyright 2018-2023 TeX Users Group
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
@@ -16,7 +16,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2018-12-30-09:31}
+\immediate\write-1{version 2023-11-02-13:26}
% we must suppress \everyrow redefintion by tabu, so some macro patching is necessary
\def\tabu at AtBeginDocument{
@@ -64,6 +64,12 @@
% \tabu at setreset % this causes issues
}% \tabu at setup
+\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
+
\Hinput{tabu}
\endinput
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht 2023-11-02 19:57:02 UTC (rev 68734)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht 2023-11-02 20:46:22 UTC (rev 68735)
@@ -1,4 +1,4 @@
-% usepackage.4ht (2023-07-25-12:42), generated from tex4ht-4ht.tex
+% usepackage.4ht (2023-11-02-13:26), generated from tex4ht-4ht.tex
% Copyright 2003-2009 Eitan M. Gurari
% Copyright 2009-2023 TeX Users Group
%
@@ -17,7 +17,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2023-07-25-12:42}
+\immediate\write-1{version 2023-11-02-13:26}
\def\:temp{tex4ht}\ifx \:temp\@currname
\:warning{\string\usepackage{tex4ht} again?}
@@ -72,6 +72,7 @@
\Configure{PackageHooks}{breakurl.sty}{breakurl-hooks.4ht}
\Configure{PackageHooks}{hyperref.sty}{hyperref-hooks.4ht}
\Configure{PackageHooks}{bookmark.sty}{bookmark-hooks.4ht}
+\AddToHook{package/tabu/before}{\RequirePackage{tabularx}}
\Configure{PackageHooks}{caption.sty}{caption-hooks.4ht}
\Configure{PackageHooks}{footnotebackref.sty}{footnotebackref-hooks.4ht}
\AddToHook{package/doc/before}{\SUPOff}
More information about the tex-live-commits
mailing list.