summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/zref-check/zref-check.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-12-21 03:00:53 +0000
committerNorbert Preining <norbert@preining.info>2021-12-21 03:00:53 +0000
commit3bffd8b7dfcee8333bb2841ea194a0daa26af8cd (patch)
treebcb2f36fb360e319a26e6a679e690112f744a28a /macros/latex/contrib/zref-check/zref-check.dtx
parent95d5657ad19f20d47fa609a8539b36088be56ce2 (diff)
CTAN sync 202112210300
Diffstat (limited to 'macros/latex/contrib/zref-check/zref-check.dtx')
-rw-r--r--macros/latex/contrib/zref-check/zref-check.dtx20
1 files changed, 6 insertions, 14 deletions
diff --git a/macros/latex/contrib/zref-check/zref-check.dtx b/macros/latex/contrib/zref-check/zref-check.dtx
index fb4e93c857..57f5e26ca4 100644
--- a/macros/latex/contrib/zref-check/zref-check.dtx
+++ b/macros/latex/contrib/zref-check/zref-check.dtx
@@ -561,7 +561,7 @@
%
% Identify the package.
% \begin{macrocode}
-\ProvidesExplPackage {zref-check} {2021-12-07} {0.2.2}
+\ProvidesExplPackage {zref-check} {2021-12-20} {0.2.3}
{Flexible cross-references with contextual checks based on zref}
% \end{macrocode}
%
@@ -614,6 +614,9 @@
% These are the lists of properties to be used by \pkg{zref-check}, that is,
% the list of properties the references and targets store. This is the
% minimum set required, more properties may be added according to options.
+% For labels set with \cs{@@_target_label:n}, that is, user facing labels, we
+% must use the \texttt{main} property list, so that \pkg{zref-clever} can also
+% retrieve the properties it needs to refer to them.
% \begin{macrocode}
\zref@newlist { zrefcheck-check }
\zref@addprops { zrefcheck-check }
@@ -623,14 +626,6 @@
zc@abschap ,
zc@abssec
}
-\zref@newlist { zrefcheck-target }
-\zref@addprops { zrefcheck-target }
- {
- page , % so that \zpageref can refer to it
- abspage ,
- zc@abschap ,
- zc@abssec
- }
\zref@newlist { zrefcheck-end }
\zref@addprops { zrefcheck-end }
{
@@ -798,10 +793,7 @@
\@ifpackageloaded { hyperref }
{
\bool_if:NT \l_@@_use_hyperref_bool
- {
- \RequirePackage { zref-hyperref }
- \zref@addprop { zrefcheck-target } { anchor }
- }
+ { \RequirePackage { zref-hyperref } }
}
{
\bool_if:NT \l_@@_warn_hyperref_bool
@@ -974,7 +966,7 @@
% according to option \opt{labelcmd}.
% \begin{macrocode}
\cs_new_protected:Npn \@@_target_label:n #1
- { \zref@labelbylist {#1} { zrefcheck-target } }
+ { \zref@label {#1} }
% \end{macrocode}
% \end{macro}
%