[tex4ht-commits] [SCM] tex4ht updated: r915 - trunk/lit

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Tue Apr 27 15:10:39 CEST 2021


Author: michal_h21
Date: 2021-04-27 13:10:39 +0000 (Tue, 27 Apr 2021)
New Revision: 915

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
fixed issues with hyperref loaded from class files

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2021-04-25 13:15:01 UTC (rev 914)
+++ trunk/lit/ChangeLog	2021-04-27 13:10:39 UTC (rev 915)
@@ -1,3 +1,9 @@
+2021-04-27  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (hyperref.4ht): fixed issues with nameref when hyperref was
+	loaded from class files.
+	https://puszcza.gnu.org.ua/bugs/index.php?508
+
 2021-04-25  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (babel.4ht, latex.4ht, lfeenc.4ht, plain.4ht,

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2021-04-25 13:15:01 UTC (rev 914)
+++ trunk/lit/tex4ht-4ht.tex	2021-04-27 13:10:39 UTC (rev 915)
@@ -4596,7 +4596,20 @@
 }
 >>>
 
+This code comes from hyperref-hooks.4ht. As hyperref-hooks.4ht is not used in .cls files
+it needs to be executed also here. I've left this code in hyperef-hooks, but it probably can 
+be removed safely.
+
 \<config hyperref\><<<
+\@ifpackageloaded{nameref}{}
+{%
+   \let\sv:label\label
+   \RequirePackage{nameref}%
+   \let\label\sv:label
+}
+>>>
+
+\<config hyperref\><<<
 \def\hyper at makecurrent#1{% 
   \begingroup 
     \edef\Hy at param{#1}% 



More information about the tex4ht-commits mailing list.