summaryrefslogtreecommitdiff
path: root/support/TeX4ht/source
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-04-24 03:03:08 +0000
committerNorbert Preining <norbert@preining.info>2024-04-24 03:03:08 +0000
commita1bae2c92d8b9b9cbd26c71b0feb7abd276e5993 (patch)
treeb1d5947913d3965ae86732f1813084c57b289b3d /support/TeX4ht/source
parentb5598758830c291828e8dcf4693b17f97d2bf3b9 (diff)
CTAN sync 202404240303
Diffstat (limited to 'support/TeX4ht/source')
-rw-r--r--support/TeX4ht/source/ChangeLog5
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex15
2 files changed, 17 insertions, 3 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog
index a2ab9b5b2d..4cc207e332 100644
--- a/support/TeX4ht/source/ChangeLog
+++ b/support/TeX4ht/source/ChangeLog
@@ -1,3 +1,8 @@
+2024-04-22 Michal Hoftich <michal.h21@gmail.com>
+
+ * tex4ht-4ht.tex (tcolorbox.4ht): fixed handling of labels in
+ Tcolorbox.
+
2024-04-21 Michal Hoftich <michal.h21@gmail.com>
* tex4ht-fonts-noncjk.tex (
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex
index 4c5fe4127a..8296aec575 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1504 2024-04-19 15:48:03Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1507 2024-04-22 13:28:48Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2024 TeX Users Group
@@ -28823,6 +28823,7 @@ We need to use dvips driver with XeLaTeX
% 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,8 +28839,9 @@ We need to use dvips driver with XeLaTeX
% 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}%
+ %\o:tcb@set@label:{\tcolorbox:label:key}%
\AnchorLabel% save cross-ref destination
+ \o:__tcobox_label:n:{\tcolorbox:label:key}%
\global\let\tcolorbox:label:key\undefined%
\fi%
% open title
@@ -28862,6 +28864,7 @@ We need to use dvips driver with XeLaTeX
\fi%
% We need to close box in \tcb@endboxanddraw
}
+\ExplSyntaxOff
\HLet\tcb@drawcolorbox\:tempa
% overwrite other versions of box drawing macros
@@ -28907,7 +28910,13 @@ We need to use dvips driver with XeLaTeX
\xdef\tcolorbox:label:key{#1}%
\global\let\tcolorbox:currentlabel\@currentlabel%
}
-\HLet\tcb@set@label\:tempa
+
+\ExplSyntaxOn
+%\HLet\tcb@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|>