[tex4ht-commits] [SCM] tex4ht updated: r1490 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Fri Mar 8 12:45:26 CET 2024
Author: michal_h21
Date: 2024-03-08 11:45:26 +0000 (Fri, 08 Mar 2024)
New Revision: 1490
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-mathml.tex
Log:
fixed degree celsius with siunitx
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2024-03-08 09:28:03 UTC (rev 1489)
+++ trunk/lit/ChangeLog 2024-03-08 11:45:26 UTC (rev 1490)
@@ -1,5 +1,7 @@
2024-03-08 Michal Hoftich <michal.h21 at gmail.com>
+ * tex4ht-mathml.tex (mathml.4ht): fixed degree celsius with Siunitx.
+
* tex4ht-mathml.tex (mathml.4ht): require math mode in Mhchem
sup-sub.
Modified: trunk/lit/tex4ht-mathml.tex
===================================================================
--- trunk/lit/tex4ht-mathml.tex 2024-03-08 09:28:03 UTC (rev 1489)
+++ trunk/lit/tex4ht-mathml.tex 2024-03-08 11:45:26 UTC (rev 1490)
@@ -5646,7 +5646,22 @@
\NewConfigure{mhchemmathlarrow}{4}
\Configure{mhchemmathlarrow}{\HCode{<\a:mathml munderover><\a:mathml mrow>}}{\HCode{</\a:mathml mrow><\a:mathml mpadded>}}{\HCode{</\a:mathml mpadded><\a:mathml mpadded>}}{\HCode{</\a:mathml mpadded></\a:mathml munderover>}}
>>>
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\section{siunitx}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\<configure mathml siunitx\><<<
+% redefinitions of Expl 3 syntax commands
+\ExplSyntaxOn
+|<siunitx degree celsius|>
+\ExplSyntaxOff
+>>>
+
+\<siunitx degree celsius\><<<
+% 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;</\a:mathml mi></\a:mathml msup>} C }
+>>>
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Notes}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
More information about the tex4ht-commits
mailing list.