summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/zref-clever
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-02-21 20:48:08 +0000
committerKarl Berry <karl@freefriends.org>2023-02-21 20:48:08 +0000
commitdb79b729227f816dfd7946b8a9bb2ee7cd674211 (patch)
treeb45a43bec498670b331328a17543cfa1efe7f1c5 /Master/texmf-dist/tex/latex/zref-clever
parent57ff3e334b48fdf6e3adf756a20f36358738d203 (diff)
zref-clever (21feb23)
git-svn-id: svn://tug.org/texlive/trunk@66021 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/zref-clever')
-rw-r--r--Master/texmf-dist/tex/latex/zref-clever/zref-clever.sty11
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 }