diff options
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/ChangeLog | 7 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-sty.tex | 8 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/tex4ht.sty | 10 |
3 files changed, 22 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index a36afe6e7b7..41ec5d2ce8b 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog @@ -1,3 +1,10 @@ +2023-10-04 Michal Hoftich <michal.h21@gmail.com> + + * tex4ht-sty.tex (tex4ht.sty): disable the \DocumentMetadata + command, in order to prevent invocation of the LaTeX tagging system, + which clashes with TeX4ht. + https://puszcza.gnu.org.ua/bugs/?477 + 2023-10-02 Michal Hoftich <michal.h21@gmail.com> * tex4ht-4ht.tex (latex.4ht): fixed support for \csname commands in diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-sty.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-sty.tex index c9193ba9400..f43c4d59a5a 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-sty.tex +++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-sty.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-sty.tex 1194 2022-09-16 13:21:14Z michal_h21 $ +% $Id: tex4ht-sty.tex 1376 2023-10-04 12:24:05Z michal_h21 $ % tex tex4ht-sty or ht tex tex4ht-sty % % Copyright 2009-2022 TeX Users Group @@ -175,6 +175,12 @@ \let\AtBeginDocument\origatbegindocument \fi +% disable new LaTeX's tagging support, +% but save the requested keys for possible latter processing +\ifdefined\DocumentMetadata + \def\DocumentMetadata#1{\def\:DocumentMetadata{#1}} +\fi + \def\writesixteen#1{\immediate\write99999{#1}} |<save cat codes|> |<ifs for TeX4ht|> diff --git a/Master/texmf-dist/tex/generic/tex4ht/tex4ht.sty b/Master/texmf-dist/tex/generic/tex4ht/tex4ht.sty index acd3921589a..e9c13b63703 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/tex4ht.sty +++ b/Master/texmf-dist/tex/generic/tex4ht/tex4ht.sty @@ -1,7 +1,7 @@ \ifnum\the\catcode`\%=14\else\expandafter\edef\csname \string:RestoreCatcodes\endcsname{\catcode`\%\the \catcode`\%}\catcode`\%14\fi -% tex4ht.sty (2023-02-03-14:48), generated from tex4ht-sty.tex +% tex4ht.sty (2023-10-04-13:17), generated from tex4ht-sty.tex % Copyright 2009-2023 TeX Users Group % Copyright 1996-2009 Eitan M. Gurari % @@ -20,7 +20,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2023-02-03-14:48} +\immediate\write-1{version 2023-10-04-13:17} \ifx \Preamble\UnDef \else @@ -32,6 +32,12 @@ \let\AtBeginDocument\origatbegindocument \fi +% disable new LaTeX's tagging support, +% but save the requested keys for possible latter processing +\ifdefined\DocumentMetadata + \def\DocumentMetadata#1{\def\:DocumentMetadata{#1}} +\fi + \def\writesixteen#1{\immediate\write99999{#1}} \expandafter\edef\csname :RestoreCatcodes\endcsname{% \expandafter\ifx \csname :RestoreCatcodes\endcsname\relax\else |