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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Sat Jan 2 01:24:46 CET 2021


Author: michal_h21
Date: 2021-01-02 02:24:46 +0200 (Sat, 02 Jan 2021)
New Revision: 858

Modified:
   trunk/lit/tex4ht-sty.tex
Log:
Redefine \AtBeginDocument just for BeforeTeXIVht

Modified: trunk/lit/tex4ht-sty.tex
===================================================================
--- trunk/lit/tex4ht-sty.tex	2021-01-02 00:09:15 UTC (rev 857)
+++ trunk/lit/tex4ht-sty.tex	2021-01-02 00:24:46 UTC (rev 858)
@@ -172,9 +172,12 @@
 |<copyright|>
 \ifx  \Preamble\UnDef  \else
    % fix for LaTeX hook system, \AtBeginDocument is not available at this moment
+   \let\origatbegindocument\AtBeginDocument
    \def\AtBeginDocument#1{\AddToHook{begindocument/end}{#1}}
    \csname expand:after\endcsname{\csname 
        BeforeTeXIVht\endcsname\let\BeforeTeXIVht|=\UnDef}
+   \let\AtBeginDocument\origatbegindocument
+
 \fi
 \def\writesixteen#1{\immediate\write99999{#1}}
 |<save cat codes|>



More information about the tex4ht-commits mailing list.