diff options
author | Karl Berry <karl@freefriends.org> | 2023-11-02 20:46:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-11-02 20:46:22 +0000 |
commit | 77d493eb35004ea0139c57e60ea73e2178c0f9fa (patch) | |
tree | 6b824e251f581b4bde37d2d30ed0e28e5166196b /Master/texmf-dist/source/generic | |
parent | 1ca9bebe06c024c8beb0a421e9bd097b2549b60a (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/source/generic')
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/ChangeLog | 7 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex | 19 |
2 files changed, 23 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index 4e07e435c51..07a08e9511d 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog @@ -1,9 +1,14 @@ +2023-11-02 Michal Hoftich <michal.h21@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@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@gmail.com> * tex4ht-4ht.tex (enotez.4ht), diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex index 631ba0523b8..1b247dcdf9d 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex +++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex @@ -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 @@ handling. Michal \<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,6 +11063,20 @@ handling. Michal }% \tabu@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} |