[tex4ht-commits] [SCM] tex4ht updated: r859 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Sat Jan 2 12:02:01 CET 2021
Author: michal_h21
Date: 2021-01-02 13:02:00 +0200 (Sat, 02 Jan 2021)
New Revision: 859
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-sty.tex
Log:
Fixed \AtBeginDocument issues
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2021-01-02 00:24:46 UTC (rev 858)
+++ trunk/lit/ChangeLog 2021-01-02 11:02:00 UTC (rev 859)
@@ -1,3 +1,7 @@
+2021-01-02 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-sty.tex (tex4ht.sty): fixed \AtBeginDocument issues.
+
2021-01-01 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-sty.tex (tex4ht.sty): emulate \AtBeginDocument in .4ht files.
Modified: trunk/lit/tex4ht-sty.tex
===================================================================
--- trunk/lit/tex4ht-sty.tex 2021-01-02 00:24:46 UTC (rev 858)
+++ trunk/lit/tex4ht-sty.tex 2021-01-02 11:02:00 UTC (rev 859)
@@ -895,16 +895,16 @@
\let\o:document|=\document
\def\document{%
|<check irregularities|>%
- %\expandafter\let\csname enddocument\endcsname|=\empty
- %\end{document}%
- |<protect AtBeginDocument|>%
- %\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%
+ %\expandafter\let\csname enddocument\endcsname|=\empty
+ %\end{document}%
+ %\let\document|=\o:document
+ |<protect AtBeginDocument|>%
\let\document\o:document%
\fi%
\let\:latex at error|=\@latex at error
More information about the tex4ht-commits
mailing list.