diff options
author | Karl Berry <karl@freefriends.org> | 2021-08-22 20:14:19 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-08-22 20:14:19 +0000 |
commit | 0fb672f7b7339e02663b9d018c1ad397a5a457ce (patch) | |
tree | 714d9ff7ac4e77488a913870afa1f5809303e9cf /Master/texmf-dist/source/generic/tex4ht | |
parent | 6e18fe0f01e9a301f7fc4a40ee702864cec07a26 (diff) |
siunitx mathjax support, tex4ht r974
git-svn-id: svn://tug.org/texlive/trunk@60305 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/generic/tex4ht')
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/ChangeLog | 6 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex | 13 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex | 24 |
3 files changed, 41 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index c7de0728940..669da6deb7e 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog @@ -1,3 +1,9 @@ +2021-08-22 Michal Hoftich <michal.h21@gmail.com> + + * tex4ht-4ht.tex (siunitx.4ht), + * tex4ht-html4.tex (html4.4ht): fixed MathJax support for Siunitx. + https://github.com/josephwright/siunitx/issues/530 + 2021-08-14 Michal Hoftich <michal.h21@gmail.com> * tex4ht-4ht.tex (biblatex.4ht): don't check for Hyperref when we define diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex index daac99a89e3..f4481f9798e 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 973 2021-08-14 10:42:30Z michal_h21 $ +% $Id: tex4ht-4ht.tex 974 2021-08-22 16:06:00Z michal_h21 $ % tex tex4ht-4ht or ht tex tex4ht-4ht % % Copyright 2009-2021 TeX Users Group @@ -28631,6 +28631,17 @@ What \Verb+\put@line+ of the 08 version does? {\ensuremath {\SI@fstyle {\no@qsk \ensuremath {\sp{\circ }}}}} >>> +%%%%%%%%%%%%%%% +\Section{Siunitx} + +\<siunitx.4ht\><<< +% siunitx.4ht (|version), generated from |jobname.tex +% Copyright 2021 TeX Users Group +|<TeX4ht license text|> +\Hinput{siunitx} +\endinput +>>> \AddFile{9}{siunitx} + %%%%%%%%%%%%% \Section{Ushort} %%%%%%%%%%%%% diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex index 035e5ea0ec6..8b651b17179 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex +++ b/Master/texmf-dist/source/generic/tex4ht/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} +%%%%%%%%%%%%%%%%%%%% +\<configure html4 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 +>>> |