[tex4ht-commits] [SCM] tex4ht updated: r1009 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Fri Nov 5 18:09:29 CET 2021
Author: michal_h21
Date: 2021-11-05 17:09:29 +0000 (Fri, 05 Nov 2021)
New Revision: 1009
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
don't load nameref explicitly
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2021-11-04 20:14:13 UTC (rev 1008)
+++ trunk/lit/ChangeLog 2021-11-05 17:09:29 UTC (rev 1009)
@@ -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
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2021-11-04 20:14:13 UTC (rev 1008)
+++ trunk/lit/tex4ht-4ht.tex 2021-11-05 17:09:29 UTC (rev 1009)
@@ -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
More information about the tex4ht-commits
mailing list.