texlive[63227] Master/texmf-dist: tcolorbox \label fix, tex4ht r1128

commits+karl at tug.org commits+karl at tug.org
Wed May 4 23:16:48 CEST 2022


Revision: 63227
          http://tug.org/svn/texlive?view=revision&revision=63227
Author:   karl
Date:     2022-05-04 23:16:48 +0200 (Wed, 04 May 2022)
Log Message:
-----------
tcolorbox \label fix, tex4ht r1128

Revision Links:
--------------
    http://tug.org/svn/texlive?view=revision&revision=1128

Modified Paths:
--------------
    trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
    trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
    trunk/Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2022-05-04 20:52:09 UTC (rev 63226)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2022-05-04 21:16:48 UTC (rev 63227)
@@ -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/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2022-05-04 20:52:09 UTC (rev 63226)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2022-05-04 21:16:48 UTC (rev 63227)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1127 2022-05-02 12:43:55Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1128 2022-05-04 12:16:51Z michal_h21 $
 % tex tex4ht-4ht   or   ht tex tex4ht-4ht
 %
 % Copyright 2009-2022 TeX Users Group    
@@ -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
 

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht	2022-05-04 20:52:09 UTC (rev 63226)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht	2022-05-04 21:16:48 UTC (rev 63227)
@@ -1,4 +1,4 @@
-% tcolorbox.4ht (2022-01-28-15:00), generated from tex4ht-4ht.tex
+% tcolorbox.4ht (2022-05-04-14:00), generated from tex4ht-4ht.tex
 % Copyright 2020-2022 TeX Users Group
 %
 % This work may be distributed and/or modified under the
@@ -16,7 +16,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2022-01-28-15:00}
+\immediate\write-1{version 2022-05-04-14:00}
 
 
 % use custom counter that increments for every \tcolorbox
@@ -34,10 +34,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
@@ -78,10 +79,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 tex-live-commits mailing list.