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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Wed Aug 27 11:53:58 CEST 2025


Author: michal_h21
Date: 2025-08-27 09:53:58 +0000 (Wed, 27 Aug 2025)
New Revision: 1731

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
declared some extra commands for unicode-math

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2025-08-24 12:37:57 UTC (rev 1730)
+++ trunk/lit/ChangeLog	2025-08-27 09:53:58 UTC (rev 1731)
@@ -1,3 +1,9 @@
+2025-08-27  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (unicode-math-hooks.4ht): declared some extra user
+	commands.
+	https://tex.stackexchange.com/a/750266/2891
+
 2025-08-16  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-mathml.tex (mathml.4ht): added support for \MathMLintent

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2025-08-24 12:37:57 UTC (rev 1730)
+++ trunk/lit/tex4ht-4ht.tex	2025-08-27 09:53:58 UTC (rev 1731)
@@ -4497,8 +4497,12 @@
 \@ifpackageloaded{fontspec}{}
 {\RequirePackage{fontspec}} % it is loaded by unicode-math
 \RequirePackage{amsmath}
+% declare some commands used in unicode-math, to prevent errors when users use
+% them in their documents
 \DeclareDocumentCommand \setmathfont { O{} m O{} }{}
 \DeclareDocumentCommand \unimathsetup {m} {} 
+\DeclareDocumentCommand \setoperatorfont {m} {}
+\DeclareDocumentCommand \setmathfontface { m O{} m O{} } {}
 \catcode`\:=11\makeatletter
 % declare prime and backprime Unicode symbols. they shouldn't be used with
 % explicit superscripts



More information about the tex4ht-commits mailing list.