diff options
author | Norbert Preining <norbert@preining.info> | 2022-05-05 03:00:42 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-05-05 03:00:42 +0000 |
commit | c8185bb3cd55c24b45c9b19c4ea36b8c7057199d (patch) | |
tree | 535e9e16b0c9a32c17440df0effa8967b91bbf76 /support/TeX4ht | |
parent | dd0a2658308068128f378c4b6af1bb37aa60621f (diff) |
CTAN sync 202205050300
Diffstat (limited to 'support/TeX4ht')
-rw-r--r-- | support/TeX4ht/source/ChangeLog | 6 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-4ht.tex | 11 |
2 files changed, 12 insertions, 5 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog index 4bdb6320c7..1edae18bda 100644 --- a/support/TeX4ht/source/ChangeLog +++ b/support/TeX4ht/source/ChangeLog @@ -1,3 +1,9 @@ +2022-05-04 Michal Hoftich <michal.h21@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@gmail.com> * tex4ht-4ht.tex (xrhyper-hooks.4ht, xr-hooks.4ht): fixed support diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex index ac3a2f5586..6c2a34c0ba 100644 --- a/support/TeX4ht/source/tex4ht-4ht.tex +++ b/support/TeX4ht/source/tex4ht-4ht.tex @@ -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 @@ We need to use dvips driver with XeLaTeX \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 @@ -27344,10 +27345,10 @@ We need to use dvips driver with XeLaTeX \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 |