diff options
author | Karl Berry <karl@freefriends.org> | 2023-02-21 20:49:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-02-21 20:49:27 +0000 |
commit | 888dc65f161a0cd3b37febaa1632e7b24c12c7d4 (patch) | |
tree | 14f46d651a477422534fdb7be87026e09f9eeb88 /Master/texmf-dist/tex | |
parent | 99c0a9d0e2980f8f05b9354a64f402a8fdca1dd6 (diff) |
zref-clever (21feb23) (branch)
git-svn-id: svn://tug.org/texlive/branches/branch2022.final@66024 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/zref-clever/zref-clever.sty | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/zref-clever/zref-clever.sty b/Master/texmf-dist/tex/latex/zref-clever/zref-clever.sty index 3e7b59e4e5b..6f8fd74d957 100644 --- a/Master/texmf-dist/tex/latex/zref-clever/zref-clever.sty +++ b/Master/texmf-dist/tex/latex/zref-clever/zref-clever.sty @@ -53,7 +53,7 @@ }% \endinput }% -\ProvidesExplPackage {zref-clever} {2023-02-18} {0.3.5} +\ProvidesExplPackage {zref-clever} {2023-02-21} {0.3.6} {Clever LaTeX cross-references based on zref} \RequirePackage { zref-base } \RequirePackage { zref-user } @@ -88,11 +88,16 @@ \zref@addprop \ZREF@mainlist { zc@type } \zref@newprop { zc@cntval } [0] { - \cs_if_exist:cTF { c@ \l__zrefclever_current_counter_tl } + \bool_lazy_and:nnTF + { ! \tl_if_empty_p:N \l__zrefclever_current_counter_tl } + { \cs_if_exist_p:c { c@ \l__zrefclever_current_counter_tl } } { \int_use:c { c@ \l__zrefclever_current_counter_tl } } { - \cs_if_exist:cT { c@ \@currentcounter } + \bool_lazy_and:nnTF + { ! \tl_if_empty_p:N \@currentcounter } + { \cs_if_exist_p:c { c@ \@currentcounter } } { \int_use:c { c@ \@currentcounter } } + { 0 } } } \zref@addprop \ZREF@mainlist { zc@cntval } |