summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-05-04 21:16:48 +0000
committerKarl Berry <karl@freefriends.org>2022-05-04 21:16:48 +0000
commit800be86f8b93d9ba6cab7fad4eca425dde9c2396 (patch)
tree99a3e8d5430f7ad5c196eb5bd132faa27043896c /Master/texmf-dist/tex/generic
parent1157390207721a2fbf4eaa28b0a0af6bf91ce252 (diff)
tcolorbox \label fix, tex4ht r1128
git-svn-id: svn://tug.org/texlive/trunk@63227 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht13
1 files changed, 7 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht b/Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht
index 363de9a2780..e3e8bb66275 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht
@@ -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@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@set@label:{#1}%
+ \global\let\tcolorbox:currentlabel\@currentlabel%
}
\HLet\tcb@set@label\:tempa