texlive[60968] Master/texmf-dist: do not load nameref in hooks,

commits+karl at tug.org commits+karl at tug.org
Fri Nov 5 23:37:52 CET 2021


Revision: 60968
          http://tug.org/svn/texlive?view=revision&revision=60968
Author:   karl
Date:     2021-11-05 23:37:52 +0100 (Fri, 05 Nov 2021)
Log Message:
-----------
do not load nameref in hooks, tex4ht r1009

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

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/biblatex-hooks.4ht
    trunk/Master/texmf-dist/tex/generic/tex4ht/hyperref-hooks.4ht

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2021-11-05 22:33:44 UTC (rev 60967)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2021-11-05 22:37:52 UTC (rev 60968)
@@ -1,3 +1,10 @@
+2021-11-05  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (hyperref-hooks.4ht, biblatex-hooks.4ht):
+	removed loading of the Nameref package from package hooks. It caused various
+	issues and I don't even remember what was the point.
+	https://puszcza.gnu.org.ua/bugs/?534
+
 2021-11-04  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-html4.tex (html4.4ht): fix for paragraphs after AMS classes proof
@@ -4,6 +11,10 @@
 	environment.
 	https://tex.stackexchange.com/a/621370/2891
 
+2021-10-31  Karl Berry  <karl at freefriends.org>
+
+	* tex4ht-4ht.tex (biblatex-hooks.4ht): copyright 2021.
+
 2021-10-28  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (biblatex-hooks.4ht): use LaTeX package hooks to load

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2021-11-05 22:33:44 UTC (rev 60967)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2021-11-05 22:37:52 UTC (rev 60968)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1007 2021-10-28 11:48:10Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1009 2021-11-05 17:09:29Z michal_h21 $
 % tex tex4ht-4ht   or   ht tex tex4ht-4ht
 %
 % Copyright 2009-2021 TeX Users Group    
@@ -3941,7 +3941,7 @@
 
 \<biblatex-hooks.4ht\><<<
 % biblatex-hooks.4ht (|version), generated from |jobname.tex
-% Copyright 2020 TeX Users Group
+% Copyright 2020-2021 TeX Users Group
 |<TeX4ht license text|>
 \:AtEndOfPackage{%
   \def\blx at mknoautolang{%
@@ -3950,7 +3950,7 @@
   }%
   |<fix biblatex lang handling|>
 }
-|<early biblatex nameref|>
+%|<early biblatex nameref|>
 >>> \AddFile{9}{biblatex-hooks}
 
 Some biblatex styles reported error missing English language. 
@@ -3973,6 +3973,11 @@
      \blx at lbxinput@iv{#2}{#2}{language '#2'}}}
 >>>
 
+Update 2021/11/04: the following information is here for the historical reasons.
+We don't load Nameref from BibLaTeX anymore. I've found that we need to 
+remove Nameref from hyperref-hooks.4ht and then everything works.
+
+Historical info: 
 BibLaTeX and TeX4ht both redefine the \Verb|\ifthenelse| command. We take care 
 of it in biblatex.4ht by defining the \Verb|\TE at hook| command. But some BibLaTeX
 styles still have issues (namely "anbt"). I've found that loading of "nameref"
@@ -3984,7 +3989,7 @@
 We can utilize the LaTeX hook system for that.
 \Link[https://tex.stackexchange.com/a/620503/2891]{}{}See this issue\EndLink.
 
-
+This code is not used anymore:
 \<early biblatex nameref\><<<
 \AddToHook{package/before/biblatex}{\RequirePackage{nameref}}
 >>>
@@ -4991,6 +4996,18 @@
 % 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
+>>> \AddFile{9}{hyperref-hooks}
+
+This code used to be loaded from hyperref-hooks.4ht, but I 
+found that it causes serious clashes with BibLaTeX. It is
+legacy code that I don't understand what is supposed to do.
+
+Maybe we will find that it's omission cause other issues,
+but I tried three recent bug reports regarding Hyperref 
+and BibLaTeX and they all work better when we remove it.
+
+\<load nameref in hyperref hooks\><<<
 \:AtEndOfPackage{%
 \@ifpackageloaded{nameref}{}
 {%
@@ -4999,11 +5016,10 @@
    \let\label\sv:label
    %\input nameref.4ht
 }}
+>>>
 
->>> \AddFile{9}{hyperref-hooks}
 
 
-
 \<nameref moved from old hyperref\><<<
 \def\tht:label#1{%
   \@bsphack

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/biblatex-hooks.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/biblatex-hooks.4ht	2021-11-05 22:33:44 UTC (rev 60967)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/biblatex-hooks.4ht	2021-11-05 22:37:52 UTC (rev 60968)
@@ -1,4 +1,4 @@
-% biblatex-hooks.4ht (2021-10-31-08:43), generated from tex4ht-4ht.tex
+% biblatex-hooks.4ht (2021-11-05-15:12), generated from tex4ht-4ht.tex
 % Copyright 2020-2021 TeX Users Group
 %
 % This work may be distributed and/or modified under the
@@ -16,7 +16,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2021-10-31-08:43}
+\immediate\write-1{version 2021-11-05-15:12}
 
 \:AtEndOfPackage{%
   \def\blx at mknoautolang{%
@@ -36,6 +36,6 @@
      \blx at lbxinput@iv{#2}{#2}{language '#2'}}}
 
 }
-\AddToHook{package/before/biblatex}{\RequirePackage{nameref}}
+%\AddToHook{package/before/biblatex}{\RequirePackage{nameref}}
 
 

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/hyperref-hooks.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/hyperref-hooks.4ht	2021-11-05 22:33:44 UTC (rev 60967)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/hyperref-hooks.4ht	2021-11-05 22:37:52 UTC (rev 60968)
@@ -1,4 +1,4 @@
-% hyperref-hooks.4ht (2021-05-06-14:39), generated from tex4ht-4ht.tex
+% hyperref-hooks.4ht (2021-11-05-15:12), generated from tex4ht-4ht.tex
 % Copyright 2021 TeX Users Group
 %
 % This work may be distributed and/or modified under the
@@ -16,15 +16,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2021-05-06-14:39}
+\immediate\write-1{version 2021-11-05-15:12}
 
-\:AtEndOfPackage{%
-\@ifpackageloaded{nameref}{}
-{%
-   \let\sv:label\label
-   \RequirePackage{nameref}%
-   \let\label\sv:label
-   %\input nameref.4ht
-}}
+% we don't have any code here for now
 
-



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