summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/ChangeLog6
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex14
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/mathtools-hooks.4ht6
3 files changed, 22 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog
index 427adcd3d44..1809a813460 100644
--- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog
+++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog
@@ -1,3 +1,9 @@
+2024-02-06 Michal Hoftich <michal.h21@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@gmail.com>
* tex4ht-html4.tex (html4.4ht): fixed nested links in footnotes.
diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
index bd81cb0db4b..14ee0a16e97 100644
--- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
+++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1455 2024-01-29 13:45:00Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1458 2024-02-06 16:07:33Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2024 TeX Users Group
@@ -22268,12 +22268,22 @@ $\m@th\displaystyle{{}#}$%
\<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
diff --git a/Master/texmf-dist/tex/generic/tex4ht/mathtools-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/mathtools-hooks.4ht
index bdbd6ef7d91..1d664ff5a92 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/mathtools-hooks.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/mathtools-hooks.4ht
@@ -1,5 +1,5 @@
% mathtools-hooks.4ht, generated from tex4ht-4ht.tex
-% Copyright 2023 TeX Users Group
+% Copyright 2023-2024 TeX Users Group
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
@@ -16,7 +16,9 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2023-07-25-12:42}
+\immediate\write-1{version 2024-02-06-12:55}
+
+\@ifpackageloaded{mathtools}{\endinput}{}
\ExplSyntaxOn
\:AtEndOfPackage{