[tex4ht-commits] [SCM] tex4ht updated: r1458 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Tue Feb 6 17:07:33 CET 2024
Author: michal_h21
Date: 2024-02-06 16:07:33 +0000 (Tue, 06 Feb 2024)
New Revision: 1458
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
prevent loading of mathtools-hooks multiple times
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2024-01-30 20:48:28 UTC (rev 1457)
+++ trunk/lit/ChangeLog 2024-02-06 16:07:33 UTC (rev 1458)
@@ -1,3 +1,9 @@
+2024-02-06 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (mathtools-hooks.4ht): prevent multiple loading of
+ this config file. Reported by Justin Shorb, caused by the Chemmacros
+ package.
+
2024-01-30 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-html4.tex (html4.4ht): fixed nested links in footnotes.
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2024-01-30 20:48:28 UTC (rev 1457)
+++ trunk/lit/tex4ht-4ht.tex 2024-02-06 16:07:33 UTC (rev 1458)
@@ -22268,13 +22268,23 @@
\<mathtools-hooks.4ht\><<<
% mathtools-hooks.4ht, generated from |jobname.tex
-% Copyright 2023 TeX Users Group
+% Copyright 2023-2024 TeX Users Group
|<TeX4ht license text|>
+|<mathtools dont load twice|>
|<mathtools inner wrapper|>
>>>
\AddFile{9}{mathtools-hooks}
+The Chemmacros package loads mathtools multiple times, but the subsequent loads lead to
+problems with catcodes. I don't see a reason for this, but it happened. To prevent that
+we will stop loading of this file if mathtools is already loaded.
+It is possible that similar issues can happen with other early hooks configuration files.
+
+\<mathtools dont load twice\><<<
+\@ifpackageloaded{mathtools}{\endinput}{}
+>>>
+
This should prevent compilation errors with commands declared using \''\DeclarePairedDelimiter' and MathML.
We need to patch the command at the moment when it is declared, so it must be available
already in the preamble. This is why we use early hooks.
More information about the tex4ht-commits
mailing list.