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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Fri Jan 5 15:34:51 CET 2024


Author: michal_h21
Date: 2024-01-05 14:34:51 +0000 (Fri, 05 Jan 2024)
New Revision: 1433

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
fixed few unicode-math errors

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2024-01-04 21:04:24 UTC (rev 1432)
+++ trunk/lit/ChangeLog	2024-01-05 14:34:51 UTC (rev 1433)
@@ -1,3 +1,10 @@
+2024-01-05  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (unicode-math-hooks.4ht): require Amsmath from
+	Unicode-math. Declare commands to prevent errors in multiple uses of
+	Unicode-math. 
+	https://fosstodon.org/@alerque@mastodon.social/111701555810243494
+
 2024-01-04  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (changepage.4ht): fixed setting of empty margins.

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2024-01-04 21:04:24 UTC (rev 1432)
+++ trunk/lit/tex4ht-4ht.tex	2024-01-05 14:34:51 UTC (rev 1433)
@@ -4370,8 +4370,9 @@
 \TivhTcats% we need to reset catcodes for : and @ before \RequirePackage
 \@ifpackageloaded{fontspec}{}
 {\RequirePackage{fontspec}} % it is loaded by unicode-math
-\NewDocumentCommand \setmathfont { O{} m O{} }{}
-\NewDocumentCommand \unimathsetup {m} {} 
+\RequirePackage{amsmath}
+\DeclareDocumentCommand \setmathfont { O{} m O{} }{}
+\DeclareDocumentCommand \unimathsetup {m} {} 
 \catcode`\:=11\makeatletter
 \endinput
 >>> \AddFile{9}{unicode-math-hooks}



More information about the tex4ht-commits mailing list.