texlive[68451] Master/texmf-dist: disable \DocumentMetadata, tex4ht

commits+karl at tug.org commits+karl at tug.org
Wed Oct 4 22:45:36 CEST 2023


Revision: 68451
          https://tug.org/svn/texlive?view=revision&revision=68451
Author:   karl
Date:     2023-10-04 22:45:35 +0200 (Wed, 04 Oct 2023)
Log Message:
-----------
disable \DocumentMetadata, tex4ht r1376

Revision Links:
--------------
    https://tug.org/svn/texlive?view=revision&revision=1376

Modified Paths:
--------------
    trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
    trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-sty.tex
    trunk/Master/texmf-dist/tex/generic/tex4ht/tex4ht.sty

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2023-10-04 16:55:03 UTC (rev 68450)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2023-10-04 20:45:35 UTC (rev 68451)
@@ -1,3 +1,10 @@
+2023-10-04  Michal Hoftich  <michal.h21 at 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 at gmail.com>
 
 	* tex4ht-4ht.tex (latex.4ht): fixed support for \csname commands in

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-sty.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-sty.tex	2023-10-04 16:55:03 UTC (rev 68450)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-sty.tex	2023-10-04 20:45:35 UTC (rev 68451)
@@ -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|>

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/tex4ht.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/tex4ht.sty	2023-10-04 16:55:03 UTC (rev 68450)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/tex4ht.sty	2023-10-04 20:45:35 UTC (rev 68451)
@@ -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



More information about the tex-live-commits mailing list.