From 60abcf6b7c488fe58d3f60605be00b2f9199673f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 9 Mar 2024 21:50:25 +0000 Subject: mhchem math mode, tex4ht r1489; siunix celsius fix, tex4ht r1490 git-svn-id: svn://tug.org/texlive/trunk@70542 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/generic/tex4ht/ChangeLog | 7 +++++++ .../source/generic/tex4ht/tex4ht-mathml.tex | 21 ++++++++++++++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist/source/generic/tex4ht') diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index e7d69a72b71..0468420a6a7 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog @@ -1,3 +1,10 @@ +2024-03-08 Michal Hoftich + + * tex4ht-mathml.tex (mathml.4ht): fixed degree celsius with Siunitx. + + * tex4ht-mathml.tex (mathml.4ht): require math mode in Mhchem + sup-sub. + 2024-03-07 Michal Hoftich * tex4ht-4ht.tex (graphics.4ht): added rule to read the .xbb file diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex index 334af005199..89ea3749729 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex +++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-mathml.tex 1479 2024-02-29 16:07:34Z michal_h21 $$ +% $Id: tex4ht-mathml.tex 1490 2024-03-08 11:45:26Z michal_h21 $$ % compile 3 times: latex tex4ht-mathltx % or xhlatex tex4ht-mathltx "html,3,sections+" % @@ -5534,8 +5534,8 @@ with small shifting. }{\:mhmathmlorhtml{\Tg\TG}{\HCode{}}} -\Configure{mhchemsupsub}{\setbox0=\hbox\bgroup}{\egroup\setbox1=\hbox\bgroup}{\egroup\HCode{<\a:mathml msubsup><\a:mathml mrow><\a:mathml mrow>}\box1\HCode{<\a:mathml mrow>}\box0\HCode{}} -\Configure{mhchemisotope}{\setbox0=\hbox\bgroup}{\egroup\setbox1=\hbox\bgroup}{\egroup\HCode{<\a:mathml msubsup><\a:mathml mrow><\a:mathml mrow>}\box1\HCode{<\a:mathml mrow>}\box0\HCode{}} +\Configure{mhchemsupsub}{\setbox0=\hbox\bgroup$}{$\egroup\setbox1=\hbox\bgroup$}{$\egroup\HCode{<\a:mathml msubsup><\a:mathml mrow><\a:mathml mrow>}\box1\HCode{<\a:mathml mrow>}\box0\HCode{}} +\Configure{mhchemisotope}{\setbox0=\hbox\bgroup$}{$\egroup\setbox1=\hbox\bgroup$}{$\egroup\HCode{<\a:mathml msubsup><\a:mathml mrow><\a:mathml mrow>}\box1\HCode{<\a:mathml mrow>}\box0\HCode{}} @@ -5646,6 +5646,21 @@ elements that are printed to support the munderover element easily. \NewConfigure{mhchemmathlarrow}{4} \Configure{mhchemmathlarrow}{\HCode{<\a:mathml munderover><\a:mathml mrow>}}{\HCode{<\a:mathml mpadded>}}{\HCode{<\a:mathml mpadded>}}{\HCode{}} >>> +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\section{siunitx} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\<<< +% redefinitions of Expl 3 syntax commands +\ExplSyntaxOn +| +\ExplSyntaxOff +>>> + +\<<< +% this fixes circle in degree celsius not printed as superscript +\siunitx_declare_unit:Ne \degreeCelsius { \HCode{<\a:mathml msup><\a:mathml mrow /><\a:mathml mi>&\#x2218;} C } +>>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \chapter{Notes} -- cgit v1.2.3