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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Mon Dec 12 11:25:55 CET 2022


Author: michal_h21
Date: 2022-12-12 10:25:54 +0000 (Mon, 12 Dec 2022)
New Revision: 1265

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-mathml.tex
Log:
Added support for the \bf command

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-12-11 15:00:58 UTC (rev 1264)
+++ trunk/lit/ChangeLog	2022-12-12 10:25:54 UTC (rev 1265)
@@ -1,3 +1,8 @@
+2022-12-12  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-mathml.tex (mathml.4ht): added support for the \bf command.
+	https://github.com/michal-h21/make4ht/issues/98
+
 2022-12-11  Karl Berry  <karl at freefriends.org>
 
 	* tex4ht-4ht.tex (pdfbase-books.4ht): copyright 2022.

Modified: trunk/lit/tex4ht-mathml.tex
===================================================================
--- trunk/lit/tex4ht-mathml.tex	2022-12-11 15:00:58 UTC (rev 1264)
+++ trunk/lit/tex4ht-mathml.tex	2022-12-12 10:25:54 UTC (rev 1265)
@@ -1696,7 +1696,14 @@
    {}%
 >>>
 
+The bf command should work in math. The following definition is a bit fragile, it expects
+that it is used inside a group for a small chunk of text.
 
+\<mathml fonts\><<<
+\def\:closebf{\HCode{</\a:mathml mi>}\EndPauseMathClass}
+\def\:tempa{\ifmmode\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi{\PauseMathClass\HCode{<\a:mathml mi mathvariant="bold">}\aftergroup\:closebf}{\o:bf:}}
+\HLet\bf\:tempa
+>>>
 
 
 \<configure html-mml latex\><<<



More information about the tex4ht-commits mailing list.