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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Fri Dec 25 14:31:17 CET 2020


Author: michal_h21
Date: 2020-12-25 15:31:16 +0200 (Fri, 25 Dec 2020)
New Revision: 856

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-sty.tex
Log:
Fixed \AtBeginDocument handling

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2020-12-24 21:04:53 UTC (rev 855)
+++ trunk/lit/ChangeLog	2020-12-25 13:31:16 UTC (rev 856)
@@ -1,3 +1,12 @@
+2020-12-25  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-sty.tex (tex4ht.sty): use the new LaTeX hook system to execute
+	\Configure{AtBeginDocument}
+	* tex4ht-4ht.tex (mathtools.4ht): the code added yesterday is now
+	unnecessary.
+	https://puszcza.gnu.org.ua/bugs/?495
+	https://tex.stackexchange.com/a/576267/2891
+
 2020-12-24  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (mathtools.4ht): load graphicx package.

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2020-12-24 21:04:53 UTC (rev 855)
+++ trunk/lit/tex4ht-4ht.tex	2020-12-25 13:31:16 UTC (rev 856)
@@ -20259,12 +20259,7 @@
 >>>        \AddFile{9}{mathtools}
 
 
-% Fix for https://puszcza.gnu.org.ua/bugs/?495
 \<mathtools sty\><<<
-\@ifpackageloaded{graphicx}{}{\RequirePackage{graphicx}}
->>>
-
-\<mathtools sty\><<<
 \ifx \o:endgathered:\:UnDef\else 
    \HRestore\endgathered 
 \fi

Modified: trunk/lit/tex4ht-sty.tex
===================================================================
--- trunk/lit/tex4ht-sty.tex	2020-12-24 21:04:53 UTC (rev 855)
+++ trunk/lit/tex4ht-sty.tex	2020-12-25 13:31:16 UTC (rev 856)
@@ -896,6 +896,9 @@
    %\let\document|=\o:document
    \ifdefined\AddToHook%
       \def\document{\endgroup\o:document}%
+      % use new LaTeX hook system to execute \Configure{AtBeginDocument}
+      \AddToHook{begindocument/before}[tex4ht]{\csname a:AtBeginDocument\endcsname}
+      \AddToHook{begindocument/end}[tex4ht]{\csname b:AtBeginDocument\endcsname}
    \else%
       \let\document\o:document%
    \fi%



More information about the tex4ht-commits mailing list.