diff options
author | Karl Berry <karl@freefriends.org> | 2021-12-20 21:31:31 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-12-20 21:31:31 +0000 |
commit | 1a9ac9bb5a3f9c3b377bbb8d1216efbe3648225e (patch) | |
tree | 5fd868a9ceb992713fd5e8042f6c7b47b8168c69 /Master/texmf-dist/source/latex/zref-check | |
parent | 2cf63bcb45293b7eeabd5b9faf348291813ce636 (diff) |
zref-check (20dec21)
git-svn-id: svn://tug.org/texlive/trunk@61359 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/zref-check')
-rw-r--r-- | Master/texmf-dist/source/latex/zref-check/zref-check.dtx | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/Master/texmf-dist/source/latex/zref-check/zref-check.dtx b/Master/texmf-dist/source/latex/zref-check/zref-check.dtx index fb4e93c8577..57f5e26ca4f 100644 --- a/Master/texmf-dist/source/latex/zref-check/zref-check.dtx +++ b/Master/texmf-dist/source/latex/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} % |