diff options
author | Karl Berry <karl@freefriends.org> | 2024-01-21 22:22:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-01-21 22:22:38 +0000 |
commit | cec02c2cb36f81b19f7960d57d141982d9f95a07 (patch) | |
tree | 181ce061eafda9f20cb6d916f6563f71f20a4c6b /Master/texmf-dist | |
parent | f4fb1c50f0f6c5346c64119317c9c569201924a6 (diff) |
disable siunix tight-spacing option, tex4ht r1446; and S columns, tex4ht r1447
git-svn-id: svn://tug.org/texlive/trunk@69530 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/ChangeLog | 8 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex | 27 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/siunitx.4ht | 13 |
3 files changed, 42 insertions, 6 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index 32a7563f981..89b5518040f 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog @@ -1,3 +1,11 @@ +2024-01-21 Michal Hoftich <michal.h21@gmail.com> + + * tex4ht-4ht.tex (siunitx.4ht): disable the S columns for tables. + https://tex.stackexchange.com/q/707485/2891 + + * tex4ht-4ht.tex (siunitx.4ht): disable the tight-spacing option. + https://tex.stackexchange.com/q/707485/2891 + 2024-01-19 Michal Hoftich <michal.h21@gmail.com> * tex4ht-4ht.tex (siunitx.4ht): require the Color package. diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex index 2b6a8431da4..7f3605731ca 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 1445 2024-01-19 11:16:04Z michal_h21 $ +% $Id: tex4ht-4ht.tex 1447 2024-01-21 21:28:32Z michal_h21 $ % tex tex4ht-4ht or ht tex tex4ht-4ht % % Copyright 2009-2024 TeX Users Group @@ -30715,7 +30715,11 @@ What \Verb+\put@line+ of the 08 version does? % Copyright 2021-2024 TeX Users Group |<TeX4ht license text|> |<siunitx require color|> +\ExplSyntaxOn |<siunitx ang|> +|<siunitx disable tight space|> +|<siunitx disable S columns|> +\ExplSyntaxOff \Hinput{siunitx} \endinput >>> \AddFile{9}{siunitx} @@ -30732,7 +30736,6 @@ This should bring support for the \Verb+\ang+ command, which can be used to input angles. \<siunitx ang\><<< -\ExplSyntaxOn \cs_set_protected:Npn \__siunitx_angle_arc_print_auxv_fourht:w #1 \q_nil #2 \q_nil #3 \q_nil #4 \q_nil #5 \q_nil #6 \q_stop {\bgroup\siunitx_print_number:n {#1#2#3#4#5}\egroup} @@ -30750,8 +30753,26 @@ to input angles. } \HLet\__siunitx_angle_arc_print_auxvi:n\__siunitx_angle_arc_print_auxvi_fourht:n -\ExplSyntaxOff +>>> + +It seems that the tight-spacing option can cause errors with TeX4ht. +We disable the boolean that is set by this option to prevent that. + +\<siunitx disable tight space\><<< +% https://tex.stackexchange.com/q/707485/2891 +\bool_set_false:N \l__siunitx_number_tight_bool +>>> + +Siunitx provides special column specification in tables. It enables alignment +of cells based on the floating point of numbers. Unfortunatelly, it +also completelly breaks TeX4ht table processing, so tables that use +it come out as a complete mess. +\<siunitx disable S columns\><<< +% disable S columns for tables +% https://tex.stackexchange.com/q/707485/2891 +\cs_set_protected:Npn \siunitx_cell_begin:w {} +\cs_set_protected:Npn \siunitx_cell_end: {} >>> %%%%%%%%%%%%% diff --git a/Master/texmf-dist/tex/generic/tex4ht/siunitx.4ht b/Master/texmf-dist/tex/generic/tex4ht/siunitx.4ht index d4453995bf3..139b51a7662 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/siunitx.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/siunitx.4ht @@ -1,4 +1,4 @@ -% siunitx.4ht (2024-01-19-15:02), generated from tex4ht-4ht.tex +% siunitx.4ht (2024-01-21-13:28), generated from tex4ht-4ht.tex % Copyright 2021-2024 TeX Users Group % % This work may be distributed and/or modified under the @@ -16,7 +16,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2024-01-19-15:02} +\immediate\write-1{version 2024-01-21-13:28} \RequirePackage{color} @@ -38,9 +38,16 @@ } \HLet\__siunitx_angle_arc_print_auxvi:n\__siunitx_angle_arc_print_auxvi_fourht:n -\ExplSyntaxOff +% https://tex.stackexchange.com/q/707485/2891 +\bool_set_false:N \l__siunitx_number_tight_bool + +% disable S columns for tables +% https://tex.stackexchange.com/q/707485/2891 +\cs_set_protected:Npn \siunitx_cell_begin:w {} +\cs_set_protected:Npn \siunitx_cell_end: {} +\ExplSyntaxOff \Hinput{siunitx} \endinput |