texlive[69728] Master/texmf-dist: prevent multiple loading of

commits+karl at tug.org commits+karl at tug.org
Tue Feb 6 22:06:10 CET 2024


Revision: 69728
          https://tug.org/svn/texlive?view=revision&revision=69728
Author:   karl
Date:     2024-02-06 22:06:10 +0100 (Tue, 06 Feb 2024)
Log Message:
-----------
prevent multiple loading of mathtools-hooks, tex4ht r1458

Revision Links:
--------------
    https://tug.org/svn/texlive?view=revision&revision=1458

Modified Paths:
--------------
    trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
    trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
    trunk/Master/texmf-dist/tex/generic/tex4ht/mathtools-hooks.4ht

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2024-02-06 20:40:32 UTC (rev 69727)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2024-02-06 21:06:10 UTC (rev 69728)
@@ -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/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2024-02-06 20:40:32 UTC (rev 69727)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2024-02-06 21:06:10 UTC (rev 69728)
@@ -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,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.

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/mathtools-hooks.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/mathtools-hooks.4ht	2024-02-06 20:40:32 UTC (rev 69727)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/mathtools-hooks.4ht	2024-02-06 21:06:10 UTC (rev 69728)
@@ -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,8 +16,10 @@
 %
 % 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{
 \renewcommand\MT_delim_default_inner_wrappers:n [1]{



More information about the tex-live-commits mailing list.