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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Mon Apr 22 14:54:44 CEST 2024


Author: michal_h21
Date: 2024-04-22 12:54:44 +0000 (Mon, 22 Apr 2024)
New Revision: 1506

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
fixed handling of labels in tcolorbox

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2024-04-21 20:16:40 UTC (rev 1505)
+++ trunk/lit/ChangeLog	2024-04-22 12:54:44 UTC (rev 1506)
@@ -1,3 +1,8 @@
+2024-04-22  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (tcolorbox.4ht): fixed handling of labels in
+	Tcolorbox.
+
 2024-04-21  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-fonts-noncjk.tex (

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2024-04-21 20:16:40 UTC (rev 1505)
+++ trunk/lit/tex4ht-4ht.tex	2024-04-22 12:54:44 UTC (rev 1506)
@@ -28823,6 +28823,7 @@
 % use custom counter that increments for every \tcolorbox
 \newcounter{:tcbcolcount}
 
+\ExplSyntaxOn
 \def\:tempa{%
   \stepcounter{:tcbcolcount}%
   % save text and background colors for use in CSS
@@ -28838,7 +28839,8 @@
   % 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}%
+    %\o:tcb at set@label:{\tcolorbox:label:key}%
+    \o:__tcobox_label:n:{\tcolorbox:label:key}%
     \AnchorLabel% save cross-ref destination
     \global\let\tcolorbox:label:key\undefined% 
   \fi%
@@ -28862,6 +28864,7 @@
   \fi%
   % We need to close box in \tcb at endboxanddraw
 }
+\ExplSyntaxOff
 
 \HLet\tcb at drawcolorbox\:tempa
 % overwrite other versions of box drawing macros
@@ -28907,8 +28910,14 @@
   \xdef\tcolorbox:label:key{#1}%
   \global\let\tcolorbox:currentlabel\@currentlabel%
 }
-\HLet\tcb at set@label\:tempa
 
+\ExplSyntaxOn
+%\HLet\tcb at set@label\:tempa
+\HLet\__tcobox_label_label:n\:tempa
+\HLet\__tcobox_label_zlabel:n\:tempa
+\HLet\__tcobox_label:n\:tempa
+\ExplSyntaxOff
+
 |<tcolorbox minipage|>
 |<tcolorbox nameref|>
 



More information about the tex4ht-commits mailing list.