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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Tue Mar 15 16:14:50 CET 2022


Author: michal_h21
Date: 2022-03-15 15:14:50 +0000 (Tue, 15 Mar 2022)
New Revision: 1089

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
Load Fontspec conditionally

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-03-14 20:55:35 UTC (rev 1088)
+++ trunk/lit/ChangeLog	2022-03-15 15:14:50 UTC (rev 1089)
@@ -1,3 +1,9 @@
+2022-03-15  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (unicode-math-hooks.4ht): don't load Fontspec if it
+	is already loaded.
+	https://github.com/michal-h21/make4ht/issues/67
+
 2022-03-14  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (biblatex.4ht): removed unused boolean variable.

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2022-03-14 20:55:35 UTC (rev 1088)
+++ trunk/lit/tex4ht-4ht.tex	2022-03-15 15:14:50 UTC (rev 1089)
@@ -4169,7 +4169,8 @@
 % Copyright 2021-2022 TeX Users Group
 |<TeX4ht license text|>
 \:dontusepackage{unicode-math}
-\RequirePackage{fontspec} % it is loaded by unicode-math
+\@ifpackageloaded{fontspec}{}
+{\RequirePackage{fontspec}} % it is loaded by unicode-math
 \NewDocumentCommand \setmathfont { O{} m O{} }{}
 \endinput
 >>> \AddFile{9}{unicode-math-hooks}



More information about the tex4ht-commits mailing list.