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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Wed Feb 3 23:19:15 CET 2021


Author: michal_h21
Date: 2021-02-04 00:19:14 +0200 (Thu, 04 Feb 2021)
New Revision: 879

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
Fix for autoref and Caption package

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2021-01-30 20:04:34 UTC (rev 878)
+++ trunk/lit/ChangeLog	2021-02-03 22:19:14 UTC (rev 879)
@@ -1,3 +1,8 @@
+2021-02-03  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (nameref.4ht): fix for \autoref and the Caption package.
+	https://tex.stackexchange.com/a/581856/2891
+
 2021-01-30  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-html4.tex (html4-math.4ht): removed most of the configuration for

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2021-01-30 20:04:34 UTC (rev 878)
+++ trunk/lit/tex4ht-4ht.tex	2021-02-03 22:19:14 UTC (rev 879)
@@ -3320,6 +3320,16 @@
     \gdef\NR:Type{equation}%
     \gdef\@currentlabelname{equation}%
 }
+
+% https://tex.stackexchange.com/a/581856/2891
+\@ifpackageloaded{caption}{
+  \pend:defIII\caption at beginex{%
+    \gdef\NR:Type{\@currenvir}%
+    \gdef\NR:Title{\a:newlabel{##2}}%
+  }
+}{}
+
+
 \@ifpackageloaded{amsmath}{%
      \Configure{@begin}{align}{\:tempams}
      \Configure{@begin}{multline}{\:tempams}



More information about the tex4ht-commits mailing list.