summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/tex4ht.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/tex4ht.sty')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/tex4ht.sty25
1 files changed, 15 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/tex4ht.sty b/Master/texmf-dist/tex/generic/tex4ht/tex4ht.sty
index b35d2098ccb..a3eeedf9556 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/tex4ht.sty
+++ b/Master/texmf-dist/tex/generic/tex4ht/tex4ht.sty
@@ -1,8 +1,8 @@
\ifnum\the\catcode`\%=14\else\expandafter\edef\csname
\string:RestoreCatcodes\endcsname{\catcode`\%\the
\catcode`\%}\catcode`\%14\fi
-% tex4ht.sty (2020-12-25-13:59), generated from tex4ht-sty.tex
-% Copyright 2009-2020 TeX Users Group
+% tex4ht.sty (2021-01-02-13:53), generated from tex4ht-sty.tex
+% Copyright 2009-2021 TeX Users Group
% Copyright 1996-2009 Eitan M. Gurari
%
% This work may be distributed and/or modified under the
@@ -20,12 +20,17 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2020-12-25-13:59}
+\immediate\write-1{version 2021-01-02-13:53}
\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}}
\expandafter\edef\csname :RestoreCatcodes\endcsname{%
@@ -171,19 +176,19 @@
\global\let\ht:empty\empty \gdef\empty{}%
\fi\fi
%
- %\expandafter\let\csname enddocument\endcsname\empty
- %\end{document}%
- \let\:begindocumenthook\@begindocumenthook
-\def\@begindocumenthook{\csname a:AtBeginDocument\endcsname
-\:begindocumenthook \csname b:AtBeginDocument\endcsname }%
-%
- %\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
+ \let\:begindocumenthook\@begindocumenthook
+\def\@begindocumenthook{\csname a:AtBeginDocument\endcsname
+\:begindocumenthook \csname b:AtBeginDocument\endcsname }%
+%
\let\document\o:document%
\fi%
\let\:latex@error\@latex@error