From 0ef3dfaccca426fb0f3b06fc106ef9b5b0423dad Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 23 Aug 2021 03:00:54 +0000 Subject: CTAN sync 202108230300 --- support/TeX4ht/source/tex4ht-html4.tex | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'support/TeX4ht/source/tex4ht-html4.tex') diff --git a/support/TeX4ht/source/tex4ht-html4.tex b/support/TeX4ht/source/tex4ht-html4.tex index 035e5ea0ec..8b651b1717 100644 --- a/support/TeX4ht/source/tex4ht-html4.tex +++ b/support/TeX4ht/source/tex4ht-html4.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-html4.tex 957 2021-06-20 21:36:38Z michal_h21 $ +% $Id: tex4ht-html4.tex 974 2021-08-22 16:06:00Z michal_h21 $ % Compile 4 times: latex tex4ht-html4 % Copy html4.4ht into the work directory before all but the last compilation. % @@ -21401,7 +21401,29 @@ users redefine the latter macro. >>> +%%%%%%%%%%%%%%%%%%%% +\section{siunitx} +%%%%%%%%%%%%%%%%%%%% +\<<< +\ExplSyntaxOn +\ifdefined\fixmathjaxtoc +\AtBeginDocument{% +\cs_gset_protected:Npn \__siunitx_print_math_auxii:n #1 + { + \tl_set:Nn \l__siunitx_print_tmp_tl {#1} + \exp_args:NNnx \tl_replace_all:Nnn \l__siunitx_print_tmp_tl + { ^ } { \token_to_str:N ^ } + % escape special HTML characters + \regex_replace_all:nnN { \x{26} } { & } \l__siunitx_print_tmp_tl + \regex_replace_all:nnN { \x{3C} } { < } \l__siunitx_print_tmp_tl + \regex_replace_all:nnN { \x{3E} } { > } \l__siunitx_print_tmp_tl + \HCode{\detokenize{\(} \tl_to_str:N \l__siunitx_print_tmp_tl \detokenize{\)}} +} +} +\fi +\ExplSyntaxOff +>>> -- cgit v1.2.3