[tex4ht-commits] [SCM] tex4ht updated: r1479 - trunk/lit

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Thu Feb 29 17:07:34 CET 2024


Author: michal_h21
Date: 2024-02-29 16:07:34 +0000 (Thu, 29 Feb 2024)
New Revision: 1479

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-mathml.tex
Log:
enclose mhchem commands inside group to support superscripts

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2024-02-29 15:27:22 UTC (rev 1478)
+++ trunk/lit/ChangeLog	2024-02-29 16:07:34 UTC (rev 1479)
@@ -1,5 +1,8 @@
 2024-02-29  Michal Hoftich  <michal.h21 at gmail.com>
 
+	* tex4ht-mathml.tex (mathml.4ht): enclose Mhchem commands in a
+	group, to suppport subscripts and superscripts.
+
 	* tex4ht-mathml.tex (mathml.4ht): fixed Mhchem arrows in MathML.
 
 2024-02-27  Michal Hoftich  <michal.h21 at gmail.com>

Modified: trunk/lit/tex4ht-mathml.tex
===================================================================
--- trunk/lit/tex4ht-mathml.tex	2024-02-29 15:27:22 UTC (rev 1478)
+++ trunk/lit/tex4ht-mathml.tex	2024-02-29 16:07:34 UTC (rev 1479)
@@ -5515,8 +5515,8 @@
 
 
 \<configure mathml mhchem\><<<
-\Configure{mhchemcf}{\HCode{<\:mhmathmlorhtml{mrow}{span}\space class="mhchem-cf">}}{\HCode{</\:mhmathmlorhtml{mrow}{span}>}}
-\Configure{mhchemce}{\HCode{<\:mhmathmlorhtml{mrow}{span}\space class="mhchem-ce">}}{\HCode{</\:mhmathmlorhtml{mrow}{span}>}}
+\Configure{mhchemcf}{\bgroup\HCode{<\:mhmathmlorhtml{mrow}{span}\space class="mhchem-cf">}}{\HCode{</\:mhmathmlorhtml{mrow}{span}>}\egroup}
+\Configure{mhchemce}{\bgroup\HCode{<\:mhmathmlorhtml{mrow}{span}\space class="mhchem-ce">}}{\HCode{</\:mhmathmlorhtml{mrow}{span}>}\egroup}
 
 % we configure subscripts and superscripts to have empty bases. it is because if superscript followed subscript, we got wrong
 % MathML markup, with mismatched tags. For example: \ce{CrO4^2-}



More information about the tex4ht-commits mailing list.