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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Fri Apr 30 11:01:14 CEST 2021


Author: michal_h21
Date: 2021-04-30 09:01:14 +0000 (Fri, 30 Apr 2021)
New Revision: 919

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-mathml.tex
Log:
Added extra group to math text commands

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2021-04-30 08:44:51 UTC (rev 918)
+++ trunk/lit/ChangeLog	2021-04-30 09:01:14 UTC (rev 919)
@@ -3,6 +3,9 @@
 	* tex4ht-mathml.tex (mathml.4ht): added special group in order to support
 	subscripts in upright Greek characters.
 	https://tex.stackexchange.com/a/595005/2891
+	* tex4ht-mathml.tex (mathml.4ht): added special group to \math<xx> commands,
+	in order to support their use in subscripts and superscripts without extra
+	groups in TeX documents.
 
 2021-04-29  Michal Hoftich  <michal.h21 at gmail.com>
 

Modified: trunk/lit/tex4ht-mathml.tex
===================================================================
--- trunk/lit/tex4ht-mathml.tex	2021-04-30 08:44:51 UTC (rev 918)
+++ trunk/lit/tex4ht-mathml.tex	2021-04-30 09:01:14 UTC (rev 919)
@@ -657,7 +657,7 @@
 
 
 \<configure mathml amsmath\><<<
-\Configure{boldsymbol}{\HCode{<mstyle mathvariant="bold-italic">}}{\HCode{</mstyle>}}
+\Configure{boldsymbol}{\bgroup\HCode{<mstyle mathvariant="bold-italic">}}{\HCode{</mstyle>}\egroup}
 >>>
 
 \<configure mathml amsmath\><<<
@@ -1733,25 +1733,25 @@
 \<configure mathml fontmath\><<<
 \def\bold:version{bold}
 \Configure{mathbf}%
-  {\Tg<\a:mathml mstyle 
+  {\bgroup\Tg<\a:mathml mstyle 
              mathvariant="bold">}%
-  {\Tg</\a:mathml mstyle>}%
+  {\Tg</\a:mathml mstyle>\egroup}%
 \Configure{mathit}%
-  {\Tg<\a:mathml mstyle  mathvariant="\ifx 
+  {\bgroup\Tg<\a:mathml mstyle  mathvariant="\ifx 
                  \bold:version\math at version bold-\fi italic">}%
-  {\Tg</\a:mathml mstyle>}%
+  {\Tg</\a:mathml mstyle>\egroup}%
 \Configure{mathrm}%
-  {\Tg<\a:mathml mstyle 
+  {\bgroup\Tg<\a:mathml mstyle 
              mathvariant="\ifx 
                  \bold:version\math at version bold\else normal\fi">}%
-  {\Tg</\a:mathml mstyle>}%
+  {\Tg</\a:mathml mstyle>\egroup}%
 \Configure{mathsf}%
-  {\Tg<\a:mathml mstyle  mathvariant="\ifx
+  {\bgroup\Tg<\a:mathml mstyle  mathvariant="\ifx
             \bold:version\math at version bold-\fi sans-serif">}%
-  {\Tg</\a:mathml mstyle>}%
+  {\Tg</\a:mathml mstyle>\egroup}%
 \Configure{mathtt}%
-  {\Tg<\a:mathml mstyle mathvariant="monospace">}%
-  {\Tg</\a:mathml mstyle>}%
+  {\bgroup\Tg<\a:mathml mstyle mathvariant="monospace">}%
+  {\Tg</\a:mathml mstyle>\egroup}%
 >>>
 
 \<configure mathml fontmath\><<<



More information about the tex4ht-commits mailing list.