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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Wed May 4 14:16:52 CEST 2022


Author: michal_h21
Date: 2022-05-04 12:16:51 +0000 (Wed, 04 May 2022)
New Revision: 1128

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
Fixed label support for tcolorbox

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-05-02 12:43:55 UTC (rev 1127)
+++ trunk/lit/ChangeLog	2022-05-04 12:16:51 UTC (rev 1128)
@@ -1,3 +1,9 @@
+2022-05-04  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (tcolorbox.4ht): fixed \label support for
+	tcolorbox.
+	https://github.com/michal-h21/make4ht/issues/75
+
 2022-05-02  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (xrhyper-hooks.4ht, xr-hooks.4ht): fixed support

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2022-05-02 12:43:55 UTC (rev 1127)
+++ trunk/lit/tex4ht-4ht.tex	2022-05-04 12:16:51 UTC (rev 1128)
@@ -27300,10 +27300,11 @@
   \def\:tcbcolid{tcolobox-\arabic{:tcbcolcount}}
   % Open box
   \a:tcolorbox%
-  % save label, if it is set
+  % set label if it exists
   \ifdefined\tcolorbox:label:key%
+    \let\@currentlabel\tcolorbox:currentlabel% at this moment, \@currentlabel has wrong value
+    \o:tcb at set@label:{\tcolorbox:label:key}%
     \AnchorLabel% save cross-ref destination
-    \label{\tcolorbox:label:key}%
     \global\let\tcolorbox:label:key\undefined% 
   \fi%
   % open title
@@ -27344,10 +27345,10 @@
 \NewConfigure{tcolorbox}{4}
 \NewConfigure{tcolorlowerbox}{2}
 
-% we need to save label for a later use
+% we need to save current label for a later use
 \def\:tempa#1{%
   \xdef\tcolorbox:label:key{#1}%
-  \o:tcb at set@label:{#1}%
+  \global\let\tcolorbox:currentlabel\@currentlabel%
 }
 \HLet\tcb at set@label\:tempa
 



More information about the tex4ht-commits mailing list.