texlive[62088] Master/texmf-dist: disabled pdfx, tex4ht r1081

commits+karl at tug.org commits+karl at tug.org
Sat Feb 19 22:31:24 CET 2022


Revision: 62088
          http://tug.org/svn/texlive?view=revision&revision=62088
Author:   karl
Date:     2022-02-19 22:31:24 +0100 (Sat, 19 Feb 2022)
Log Message:
-----------
disabled pdfx, tex4ht r1081

Revision Links:
--------------
    http://tug.org/svn/texlive?view=revision&revision=1081

Modified Paths:
--------------
    trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
    trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
    trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht

Added Paths:
-----------
    trunk/Master/texmf-dist/tex/generic/tex4ht/pdfx-hooks.4ht

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2022-02-19 21:21:30 UTC (rev 62087)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2022-02-19 21:31:24 UTC (rev 62088)
@@ -1,3 +1,13 @@
+2022-02-19  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (hyperref-hooks.4ht): define autoref captions, so
+	they are available in the preamble.
+	https://tex.stackexchange.com/q/634043/2891
+
+	* tex4ht-4ht.tex (usepackage.4ht, pdfx-hooks.4ht): disable loading
+	of the Pdfx package.
+	https://tex.stackexchange.com/q/634043/2891
+
 2022-02-16  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-html4.tex (html4.4ht): write CSS for table column width

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2022-02-19 21:21:30 UTC (rev 62087)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2022-02-19 21:31:24 UTC (rev 62088)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1079 2022-02-16 21:13:48Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1082 2022-02-19 21:28:26Z michal_h21 $
 % tex tex4ht-4ht   or   ht tex tex4ht-4ht
 %
 % Copyright 2009-2022 TeX Users Group    
@@ -4658,6 +4658,25 @@
 >>> \AddFile{9}{pdfbase-hooks}
 
 %%%%%%%%%%%%%%%%%
+\Section{pdfx.sty}
+%%%%%%%%%%%%%%%%%
+
+The pdfx package causes fatal error for TeX4ht. As it's features make sense only in the
+PDF mode, it is safest thing to do to just disable the package.
+
+\<add to usepackage\><<<
+\Configure{PackageHooks}{pdfx.sty}{pdfx-hooks.4ht}
+>>>
+
+\<pdfx-hooks.4ht\><<<
+% pdfx-hooks.4ht (|version), generated from |jobname.tex
+% Copyright 2022 TeX Users Group
+|<TeX4ht license text|>
+\:dontusepackage{pdfx}
+\endinput
+>>> \AddFile{9}{pdfx-hooks}
+
+%%%%%%%%%%%%%%%%%
 \Section{animate.sty}
 %%%%%%%%%%%%%%%%%
 
@@ -5162,8 +5181,10 @@
 % hyperref-hooks.4ht (|version), generated from |jobname.tex
 % Copyright 2021 TeX Users Group
 |<TeX4ht license text|>
-% we don't have any code here for now
+\:AtEndOfPackage{%
 |<load nameref in hyperref hooks|>
+|<define autoref captions|>
+}
 >>> \AddFile{9}{hyperref-hooks}
 
 We need to load Nameref here, otherwise lot of documents
@@ -5175,7 +5196,6 @@
 TeX4ht hooks.
 
 \<load nameref in hyperref hooks\><<<
-\:AtEndOfPackage{%
 \@ifpackageloaded{nameref}{}
 {%
    \RequirePackage{ifthen}% 
@@ -5183,11 +5203,40 @@
    \RequirePackage{nameref}%
    \let\label\sv:label
    %\input nameref.4ht
-}}
+}
 >>>
 
+Hyperref defines following captions at the end of the package. 
+The problem is that Hyperref detects TeX4ht, and stops its
+loading too early, before the captions are declared. 
+They are available in the document, but not in the preamble.
+This can result in compilation errors if user tries to redefine 
+one of these captions in the preamble.
 
+\<define autoref captions\><<<
+\providecommand*\AMSautorefname{\equationautorefname}
+\providecommand*\Hfootnoteautorefname{\footnoteautorefname}
+\providecommand*\Itemautorefname{\itemautorefname}
+\providecommand*\itemautorefname{item}
+\providecommand*\equationautorefname{Equation}
+\providecommand*\footnoteautorefname{footnote}
+\providecommand*\itemautorefname{item}
+\providecommand*\figureautorefname{Figure}
+\providecommand*\tableautorefname{Table}
+\providecommand*\partautorefname{Part}
+\providecommand*\appendixautorefname{Appendix}
+\providecommand*\chapterautorefname{chapter}
+\providecommand*\sectionautorefname{section}
+\providecommand*\subsectionautorefname{subsection}
+\providecommand*\subsubsectionautorefname{subsubsection}
+\providecommand*\paragraphautorefname{paragraph}
+\providecommand*\subparagraphautorefname{subparagraph}
+\providecommand*\FancyVerbLineautorefname{line}
+\providecommand*\theoremautorefname{Theorem}
+\providecommand*\pageautorefname{page}
+>>>
 
+
 \<nameref moved from old hyperref\><<<
 \def\tht:label#1{%
   \@bsphack

Added: trunk/Master/texmf-dist/tex/generic/tex4ht/pdfx-hooks.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/pdfx-hooks.4ht	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/pdfx-hooks.4ht	2022-02-19 21:31:24 UTC (rev 62088)
@@ -0,0 +1,23 @@
+% pdfx-hooks.4ht (2022-02-19-13:30), generated from tex4ht-4ht.tex
+% Copyright 2022 TeX Users Group
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3c of this license or (at your option) any
+% later version. The latest version of this license is in
+%   http://www.latex-project.org/lppl.txt
+% and version 1.3c or later is part of all distributions
+% of LaTeX version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status "maintained".
+%
+% The Current Maintainer of this work
+% is the TeX4ht Project <http://tug.org/tex4ht>.
+%
+% If you modify this program, changing the
+% version identification would be appreciated.
+\immediate\write-1{version 2022-02-19-13:30}
+
+\:dontusepackage{pdfx}
+\endinput
+


Property changes on: trunk/Master/texmf-dist/tex/generic/tex4ht/pdfx-hooks.4ht
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht	2022-02-19 21:21:30 UTC (rev 62087)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht	2022-02-19 21:31:24 UTC (rev 62088)
@@ -1,4 +1,4 @@
-% usepackage.4ht (2022-02-10-13:40), generated from tex4ht-4ht.tex
+% usepackage.4ht (2022-02-19-13:30), generated from tex4ht-4ht.tex
 % Copyright 2003-2009 Eitan M. Gurari
 % Copyright 2009-2022 TeX Users Group
 %
@@ -17,7 +17,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2022-02-10-13:40}
+\immediate\write-1{version 2022-02-19-13:30}
 
    \def\:temp{tex4ht}\ifx \:temp\@currname
    \:warning{\string\usepackage{tex4ht} again?}
@@ -61,6 +61,7 @@
 \Configure{PackageHooks}{fontspec.sty}{fontspec-hooks.4ht}
 \Configure{PackageHooks}{tikz.sty}{tikz-hooks.4ht}
 \Configure{PackageHooks}{pdfbase.sty}{pdfbase-hooks.4ht}
+\Configure{PackageHooks}{pdfx.sty}{pdfx-hooks.4ht}
 \Configure{PackageHooks}{breakurl.sty}{breakurl-hooks.4ht}
 \Configure{PackageHooks}{hyperref.sty}{hyperref-hooks.4ht}
 \Configure{PackageHooks}{caption.sty}{caption-hooks.4ht}



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