summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-11-02 20:46:22 +0000
committerKarl Berry <karl@freefriends.org>2023-11-02 20:46:22 +0000
commit77d493eb35004ea0139c57e60ea73e2178c0f9fa (patch)
tree6b824e251f581b4bde37d2d30ed0e28e5166196b /Master/texmf-dist/tex
parent1ca9bebe06c024c8beb0a421e9bd097b2549b60a (diff)
emulate tabu with tabularx, tex4ht r1402-03
git-svn-id: svn://tug.org/texlive/trunk@68735 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/tabu.4ht12
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht5
2 files changed, 12 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/tabu.4ht b/Master/texmf-dist/tex/generic/tex4ht/tabu.4ht
index d5a0aecc786..28f21f4d821 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/tabu.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/tabu.4ht
@@ -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@AtBeginDocument{
@@ -64,6 +64,12 @@
% \tabu@setreset % this causes issues
}% \tabu@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
diff --git a/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht b/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht
index 13b548a03e5..cb13d4ee1a0 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht
@@ -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}