From ae34f484404571c09a61f3bde45d083a51cb0ac5 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Wed, 18 Aug 2021 03:00:59 +0000
Subject: CTAN sync 202108180300

---
 macros/latex/contrib/zref-check/zref-check.dtx | 301 ++++++++++++++++++-------
 1 file changed, 215 insertions(+), 86 deletions(-)

(limited to 'macros/latex/contrib/zref-check/zref-check.dtx')

diff --git a/macros/latex/contrib/zref-check/zref-check.dtx b/macros/latex/contrib/zref-check/zref-check.dtx
index 3ef8af66d8..29c48befbd 100644
--- a/macros/latex/contrib/zref-check/zref-check.dtx
+++ b/macros/latex/contrib/zref-check/zref-check.dtx
@@ -74,7 +74,7 @@
 % provide the text to be typeset based on the contextual information,
 % \cs{zcheck} lets the user supply an arbitrary text and specify one or more
 % checks to be done on the label(s) being referred to.  If any of the checks
-% fail, a warning is issued upon compilation, so that the user can go back to
+% fails, a warning is issued upon compilation, so that the user can go back to
 % that cross-reference and correct it as needed, without having to rely on
 % burdensome and error prone manual proof-reading.
 %
@@ -151,24 +151,26 @@
 %
 % \begin{function}{\zcheck}
 %   \begin{syntax}
-%     \cs{zcheck}\oarg{options}\marg{labels}\oarg{checks}\marg{text}
+%     \cs{zcheck}\oarg{checks/options}\marg{labels}\marg{text}
 %   \end{syntax}
-%   Typesets \marg{text}, as given, while performing the comma separated list
-%   of \oarg{checks} on each of the comma separated list of \marg{labels}.
-%   When \pkg{hyperref} support is enabled, \marg{text} will be made a
-%   hyperlink to \emph{the first} label in \marg{labels}.  The starred version
-%   of the command does the same as the plain one, just does not form a link.
-%   The \oarg{options} are (mostly) the same as those of the package, and can
-%   be given to local effect.
+%   Typesets \meta{text}, as given, while performing a list of \meta{checks}
+%   on each of the \meta{labels}.  When \pkg{hyperref} support is enabled,
+%   \meta{text} will be made a hyperlink to \emph{the first} \meta{label} in
+%   \meta{labels}.  The starred version of the command does the same as the
+%   plain one, just does not form a link.  The \meta{options} are (mostly) the
+%   same as those of the package, and can be given to local effect.
+%   \meta{checks} and \meta{options} can be given side by side as a comma
+%   separated list in the optional argument.  \meta{labels} is also a comma
+%   separated list.
 % \end{function}
 %
 % \begin{function}{\zctarget}
 %   \begin{syntax}
 %     \cs{zctarget}\marg{label}\marg{text}
 %   \end{syntax}
-%   Typesets \marg{text}, as given, and places a pair of \texttt{zlabel}s, one
-%   at the start of \marg{text}, using \marg{label} as label name, another one
-%   (internal) at the end of \marg{text}.
+%   Typesets \meta{text}, as given, and places a pair of \texttt{zlabel}s, one
+%   at the start of \meta{text}, using \meta{label} as label name, another one
+%   (internal) at the end of \meta{text}.
 % \end{function}
 %
 %
@@ -197,11 +199,11 @@
 % \pkg{zref-check} provides several ``checks'' to be used with \cs{zcheck}.
 % The checks may be combined in a \cs{zcheck} call, e.g.\ \opt{[close,
 % after]}, or \opt{[thischap, before]}.  In this case, each check in
-% \oarg{checks} is performed against each of the \marg{labels}.  This is done
+% \meta{checks} is performed against each of the \meta{labels}.  This is done
 % independently for each check, which means, in practice, that the checks bear
 % a logical \texttt{AND} relation to the others.  Whether the combination is
 % meaningful, is up to the user.  As is the correspondence between the
-% \oarg{checks} and the \marg{text>} in \cs{zcheck}.
+% \meta{checks} and the \meta{text} in \cs{zcheck}.
 %
 % The use of checks which perform ``within the page'' comparisons -- namely
 % \opt{above} and \opt{below} and, through them, \opt{before} and \opt{after}
@@ -214,7 +216,7 @@
 % label being referred to, relative to the \cs{zcheck} call being made.  For
 % example, the \opt{before} check should issue no message if
 % \cs{ztarget}|{mylabel}{...}| occurs before
-% \cs{zcheck}|{mylabel}[before]{...}|.
+% \cs{zcheck}|[before]{mylabel}{...}|.
 %
 % The available checks are the following:
 %
@@ -298,14 +300,13 @@
 % set globally either as \cs{usepackage}\oarg{options} at load-time (see
 % Section~\ref{sec:loading-package}), or by means of \cs{zrefchecksetup} (see
 % Section~\ref{sec:user-interface}) in the preamble.  Most options can also be
-% used with local effects, through the optional argument \oarg{options} of
-% \cs{zcheck}.
+% used with local effects, through the optional argument of \cs{zcheck}.
 %
 % \DescribeOption{hyperref}
 % Controls the use of \pkg{hyperref} by \pkg{zref-check} and takes values
 % \opt{auto}, \opt{true}, \opt{false}.  The default value, \opt{auto}, makes
 % \pkg{zref-check} use \pkg{hyperref} if it is loaded, meaning \cs{zcheck} can
-% be hyperlinked to the \emph{first label} in \marg{labels}.  \opt{true} does
+% be hyperlinked to the \emph{first label} in \meta{labels}.  \opt{true} does
 % the same thing, but warns if \pkg{hyperref} is not loaded (\pkg{hyperref} is
 % never loaded for you).  In either of these cases, if \pkg{hyperref} is
 % loaded, module \pkg{zref-hyperref} is also loaded by \pkg{zref-check}.
@@ -399,7 +400,7 @@
 % in tandem with standard references, for example:
 %
 % \begin{verbatim}
-%     ... Figure~\ref{fig:figure-1}, \zcheck*{fig:figure-1}[nextpage]{on
+%     ... Figure~\ref{fig:figure-1}, \zcheck*[nextpage]{fig:figure-1}{on
 %     the next page}.
 % \end{verbatim}
 %
@@ -431,12 +432,12 @@
 % \texttt{abspage} property provided by the \pkg{zref-abspage} module.  This
 % is a solid piece of information, on which we can rely upon.  However,
 % despite that, page number checks may still become ill-defined, if the
-% \marg{text} argument in \cs{zcheck}, when typeset, crosses page boundaries,
+% \meta{text} argument in \cs{zcheck}, when typeset, crosses page boundaries,
 % starting in one page, and finishing in another.  The same can happen with
 % the text in \cs{zctarget} and the \texttt{zcregion} environment.
 %
-% This is why the user commands of this package set always a pair or labels
-% around \meta{text}.  So, when checking \cs{zcheck} against a regular
+% This is why the user commands of this package set a pair or labels around
+% \meta{text}.  So, when checking \cs{zcheck} against a regular
 % \texttt{zlabel} both the start and the end of the \meta{text} are checked
 % against the label, and the check fails if either of them fails.  When
 % checking \cs{zcheck} against a \cs{zctarget} or a \texttt{zcregion}, both
@@ -548,7 +549,7 @@
 %
 % Identify the package.
 %    \begin{macrocode}
-\ProvidesExplPackage {zref-check} {2021-08-04} {0.1.0}
+\ProvidesExplPackage {zref-check} {2021-08-17} {0.2.0}
   {Flexible cross-references with contextual checks based on zref}
 %    \end{macrocode}
 %
@@ -587,15 +588,15 @@
     \int_gincr:N \g_@@_abschap_int
     \int_zero:N \g_@@_abssec_int
   }
-\zref@newprop { abschap } [0] { \int_use:N \g_@@_abschap_int }
-\zref@addprop \ZREF@mainlist { abschap }
+\zref@newprop { zc@abschap } [0] { \int_use:N \g_@@_abschap_int }
+\zref@addprop \ZREF@mainlist { zc@abschap }
 %    \end{macrocode}
 %
 %    \begin{macrocode}
 \AddToHook { cmd / section / before }
   { \int_gincr:N \g_@@_abssec_int }
-\zref@newprop { abssec } [0] { \int_use:N \g_@@_abssec_int }
-\zref@addprop \ZREF@mainlist { abssec }
+\zref@newprop { zc@abssec } [0] { \int_use:N \g_@@_abssec_int }
+\zref@addprop \ZREF@mainlist { zc@abssec }
 %    \end{macrocode}
 %
 %
@@ -606,10 +607,10 @@
 \zref@newlist { zrefcheck }
 \zref@addprops { zrefcheck }
   {
+    page ,
     abspage ,
-    abschap ,
-    abssec ,
-    page
+    zc@abschap ,
+    zc@abssec
   }
 %    \end{macrocode}
 %
@@ -773,7 +774,7 @@
 % \end{variable}
 %
 %    \begin{macrocode}
-\AtBeginDocument
+\AddToHook { begindocument }
   {
     \@ifpackageloaded { hyperref }
       {
@@ -837,7 +838,7 @@
 % \end{variable}
 %
 %    \begin{macrocode}
-\AtBeginDocument
+\AddToHook { begindocument }
   {
     \keys_define:nn { zref-check }
       { ignore .meta:n = { msglevel = none } }
@@ -935,7 +936,7 @@
 % \end{macro}
 %
 %    \begin{macrocode}
-\AtBeginDocument
+\AddToHook { begindocument }
   {
     \bool_if:NT \l_@@_target_label_bool
       {
@@ -1147,9 +1148,11 @@
 % circumstances, and except for outrageous label placement by the user, it
 % would return the expected results.  We don't really need exact coordinates
 % to decide ``above/below''.  Besides, it would do an exact job for the
-% dedicated target macros of this package.  However, I could not conceive a
-% situation where the \texttt{yx} criterion would perform clearly better than
-% the \texttt{labelseq} one.  And, if that's the case, and considering the
+% dedicated target macros of this package.  It is also true that the ``page''
+% for \cs{pageref} is stored with the value of where the \cs{label} is placed,
+% wherever that may be.  However, I could not conceive a situation where the
+% \texttt{yx} criterion would perform clearly better than the
+% \texttt{labelseq} one.  And, if that's the case, and considering the
 % complications it brings, this check was a slippery slope.  All in all, I've
 % decided to drop it.
 %
@@ -1350,13 +1353,13 @@
 %   \url{https://tex.stackexchange.com/a/179907}.
 %
 %   \begin{syntax}
-%     \cs{zcheck}\meta{*}\oarg{options}\marg{labels}\oarg{checks}\marg{text}
+%     \cs{zcheck}\meta{*}\oarg{checks/options}\marg{labels}\marg{text}
 %   \end{syntax}
 %
 %    \begin{macrocode}
 \NewDocumentCommand \zcheck
-  { s O { } > { \SplitList { , } } m > { \SplitList { , } } O { } m }
-  { \zref@wrapper@babel \@@_zcheck:nnnnn {#3} {#1} {#2} {#4} {#5} }
+  { s O { } > { \SplitList { , } } m m }
+  { \zref@wrapper@babel \@@_zcheck:nnnn {#3} {#1} {#2} {#4} }
 %    \end{macrocode}
 % \end{macro}
 %
@@ -1368,7 +1371,7 @@
 %     \l_@@_checkend_tl ,
 %     \l_@@_link_label_tl ,
 %     \l_@@_link_anchor_tl ,
-%     \l_@@_link_star_tl
+%     \l_@@_link_star_bool
 %   }
 %    \begin{macrocode}
 \int_new:N \g_@@_id_int
@@ -1376,11 +1379,11 @@
 \tl_new:N \l_@@_checkend_tl
 \tl_new:N \l_@@_link_label_tl
 \tl_new:N \l_@@_link_anchor_tl
-\bool_new:N \l_@@_link_star_tl
+\bool_new:N \l_@@_link_star_bool
 %    \end{macrocode}
 % \end{variable}
 %
-% \begin{macro}{\@@_zcheck:nnnnn}
+% \begin{macro}{\@@_zcheck:nnnn}
 %   An intermediate internal function, which does the actual heavy lifting,
 %   and places \Arg{labels} as first argument, so that it can be protected by
 %   \cs{zref@wrapper@babel} in \cs{zcheck}.  This is the same procedure as the
@@ -1388,15 +1391,19 @@
 %   protection of \pkg{babel} active characters.
 %
 %   \begin{syntax}
-%     \cs{@@_zcheck:nnnnn} \Arg{labels} \Arg{*} \Arg{options} \Arg{checks} \Arg{text}
+%     \cs{@@_zcheck:nnnn} \Arg{labels} \Arg{*} \Arg{checks/options} \Arg{text}
 %   \end{syntax}
 %
 %    \begin{macrocode}
-\cs_new:Npn \@@_zcheck:nnnnn #1#2#3#4#5
+\cs_new:Npn \@@_zcheck:nnnn #1#2#3#4
   {
     \group_begin:
 %    \end{macrocode}
-% Process local options.
+% Set checks keys.
+%    \begin{macrocode}
+      \@@_set_checks_keys:
+%    \end{macrocode}
+% Process local options and checks.
 %    \begin{macrocode}
       \keys_set:nn { zref-check } {#3}
 %    \end{macrocode}
@@ -1418,25 +1425,25 @@
 % hyperlinking.
 %    \begin{macrocode}
       \tl_set:Nn \l_@@_link_label_tl { \tl_head:n {#1} }
-      \bool_set:Nn \l_@@_link_star_tl {#2}
+      \bool_set:Nn \l_@@_link_star_bool {#2}
       \zref@ifrefundefined { \l_@@_link_label_tl }
 %    \end{macrocode}
 % If the reference is undefined, just typeset.
 %    \begin{macrocode}
-        {#5}
+        {#4}
         {
           \bool_if:nTF
             {
               \l_@@_use_hyperref_bool &&
-              ! \l_@@_link_star_tl
+              ! \l_@@_link_star_bool
             }
             {
               \exp_args:Nx \zrefcheck_get_astl:nnn
                 { \l_@@_link_label_tl }
                 { anchor } { \l_@@_link_anchor_tl }
-              \hyperlink { \l_@@_link_anchor_tl } {#5}
+              \hyperlink { \l_@@_link_anchor_tl } {#4}
             }
-            {#5}
+            {#4}
         }
 %    \end{macrocode}
 % Set checkend label.
@@ -1449,7 +1456,8 @@
 %    \end{macrocode}
 % Run the checks.
 %    \begin{macrocode}
-      \@@_run_checks:nnV {#4} {#1} { \l_@@_checkbeg_tl }
+      \@@_run_checks:nnv
+        { \l_@@_zcheck_checks_seq } {#1} { l_@@_checkbeg_tl }
     \group_end:
   }
 %    \end{macrocode}
@@ -1536,25 +1544,146 @@
 % registered for \pkg{zref}.  This can be done with \cs{zref@newprop},
 % \cs{zref@addprop} and friends, as usual.
 %
+% Third, the check must be registered as a key which gets setup in
+% \cs{zcheck} by \cs{@@_set_checks_keys:}.
+%
+%
+% \subsection{Setup}
+%
+% \begin{variable}{\l_@@_zcheck_checks_seq}
+%    \begin{macrocode}
+\seq_new:N \l_@@_zcheck_checks_seq
+%    \end{macrocode}
+% \end{variable}
+%
+% \begin{macro}{\@@_set_checks_keys:}
+%    \begin{macrocode}
+\cs_new:Npn \@@_set_checks_keys:
+  {
+    \keys_define:nn  { zref-check }
+      {
+        thispage .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { thispage } } ,
+        thispage .value_forbidden:n = true ,
+
+        prevpage .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { prevpage } } ,
+        prevpage .value_forbidden:n = true ,
+
+        nextpage .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { nextpage } } ,
+        nextpage .value_forbidden:n = true ,
+
+        facing .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { facing } } ,
+        facing .value_forbidden:n = true ,
+
+        above .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { above } } ,
+        above .value_forbidden:n = true ,
+
+        below .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { below } } ,
+        below .value_forbidden:n = true ,
+
+        pagesbefore .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { pagesbefore } } ,
+        pagesbefore .value_forbidden:n = true ,
+
+        ppbefore .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { ppbefore } } ,
+        ppbefore .value_forbidden:n = true ,
+
+        pagesafter .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { pagesafter } } ,
+        pagesafter .value_forbidden:n = true ,
+
+        ppafter .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { ppafter } } ,
+        ppafter .value_forbidden:n = true ,
+
+        before .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { before } } ,
+        before .value_forbidden:n = true ,
+
+        after .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { after } } ,
+        after .value_forbidden:n = true ,
+
+        thischap .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { thischap } } ,
+        thischap .value_forbidden:n = true ,
+
+        prevchap .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { prevchap } } ,
+        prevchap .value_forbidden:n = true ,
+
+        nextchap .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { nextchap } } ,
+        nextchap .value_forbidden:n = true ,
+
+        chapsbefore .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { chapsbefore } } ,
+        chapsbefore .value_forbidden:n = true ,
+
+        chapsafter .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { chapsafter } } ,
+        chapsafter .value_forbidden:n = true ,
+
+        thissec .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { thissec } } ,
+        thissec .value_forbidden:n = true ,
+
+        prevsec .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { prevsec } } ,
+        prevsec .value_forbidden:n = true ,
+
+        nextsec .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { nextsec } } ,
+        nextsec .value_forbidden:n = true ,
+
+        secsbefore .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { secsbefore } } ,
+        secsbefore .value_forbidden:n = true ,
+
+        secsafter .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { secsafter } } ,
+        secsafter .value_forbidden:n = true ,
+
+        close .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { close } } ,
+        close .value_forbidden:n = true ,
+
+        far .code:n =
+          { \seq_put_right:Nn \l_@@_zcheck_checks_seq { far } } ,
+        far .value_forbidden:n = true ,
+      }
+  }
+%    \end{macrocode}
+% \end{macro}
+%
+%
+%
 %
 % \subsection{Running}
 %
-% \begin{macro}{\@@_run_checks:nnn, \@@_run_checks:nnV}
+% \begin{macro}{\@@_run_checks:nnn, \@@_run_checks:nnv}
 %   \begin{syntax}
 %     \cs{@@_run_checks:nnn} \Arg{checks} \Arg{labels} \Arg{reference}
 %   \end{syntax}
+%   \meta{checks} are expected to be received as a sequence variable.
 %    \begin{macrocode}
 \cs_new:Npn \@@_run_checks:nnn #1#2#3
   {
     \group_begin:
       \tl_map_inline:nn {#2}
         {
-          \tl_map_inline:nn {#1}
+          \seq_map_inline:Nn #1
             { \@@_do_check:nnn {####1} {##1} {#3} }
         }
     \group_end:
   }
-\cs_generate_variant:Nn \@@_run_checks:nnn { nnV }
+\cs_generate_variant:Nn \@@_run_checks:nnn { nnv }
 %    \end{macrocode}
 % \end{macro}
 %
@@ -1981,15 +2110,15 @@
   {
     \group_begin:
       \bool_set_true:N \l_@@_integer_bool
-      \zrefcheck_get_asint:nnn {#1} { abschap } { \l_@@_lbl_int }
-      \zrefcheck_get_asint:nnn {#2} { abschap } { \l_@@_ref_int }
+      \zrefcheck_get_asint:nnn {#1} { zc@abschap } { \l_@@_lbl_int }
+      \zrefcheck_get_asint:nnn {#2} { zc@abschap } { \l_@@_ref_int }
       \bool_lazy_and:nnTF
         { \l_@@_integer_bool }
         {
           \int_compare_p:nNn
             { \l_@@_lbl_int } = { \l_@@_ref_int } &&
 %    \end{macrocode}
-% `0' is the default value of \texttt{abschap} property, and means here no
+% `0' is the default value of \texttt{zc@abschap} property, and means here no
 % \cs{chapter} has yet been issued, therefore it cannot be ``this chapter'',
 % nor ``the next chapter'', nor ``the previous chapter'', it is just ``no
 % chapter''.  Note, however, that a statement about a ``future'' chapter does
@@ -2007,8 +2136,8 @@
   {
     \group_begin:
       \bool_set_true:N \l_@@_integer_bool
-      \zrefcheck_get_asint:nnn {#1} { abschap } { \l_@@_lbl_int }
-      \zrefcheck_get_asint:nnn {#2} { abschap } { \l_@@_ref_int }
+      \zrefcheck_get_asint:nnn {#1} { zc@abschap } { \l_@@_lbl_int }
+      \zrefcheck_get_asint:nnn {#2} { zc@abschap } { \l_@@_ref_int }
       \bool_lazy_and:nnTF
         { \l_@@_integer_bool }
         {
@@ -2024,8 +2153,8 @@
   {
     \group_begin:
       \bool_set_true:N \l_@@_integer_bool
-      \zrefcheck_get_asint:nnn {#1} { abschap } { \l_@@_lbl_int }
-      \zrefcheck_get_asint:nnn {#2} { abschap } { \l_@@_ref_int }
+      \zrefcheck_get_asint:nnn {#1} { zc@abschap } { \l_@@_lbl_int }
+      \zrefcheck_get_asint:nnn {#2} { zc@abschap } { \l_@@_ref_int }
       \bool_lazy_and:nnTF
         { \l_@@_integer_bool }
         {
@@ -2042,8 +2171,8 @@
   {
     \group_begin:
       \bool_set_true:N \l_@@_integer_bool
-      \zrefcheck_get_asint:nnn {#1} { abschap } { \l_@@_lbl_int }
-      \zrefcheck_get_asint:nnn {#2} { abschap } { \l_@@_ref_int }
+      \zrefcheck_get_asint:nnn {#1} { zc@abschap } { \l_@@_lbl_int }
+      \zrefcheck_get_asint:nnn {#2} { zc@abschap } { \l_@@_ref_int }
       \bool_lazy_and:nnTF
         { \l_@@_integer_bool }
         {
@@ -2059,8 +2188,8 @@
   {
     \group_begin:
       \bool_set_true:N \l_@@_integer_bool
-      \zrefcheck_get_asint:nnn {#1} { abschap } { \l_@@_lbl_int }
-      \zrefcheck_get_asint:nnn {#2} { abschap } { \l_@@_ref_int }
+      \zrefcheck_get_asint:nnn {#1} { zc@abschap } { \l_@@_lbl_int }
+      \zrefcheck_get_asint:nnn {#2} { zc@abschap } { \l_@@_ref_int }
       \bool_lazy_and:nnTF
         { \l_@@_integer_bool }
         {
@@ -2092,10 +2221,10 @@
   {
     \group_begin:
       \bool_set_true:N \l_@@_integer_bool
-      \zrefcheck_get_asint:nnn {#1} { abssec  } { \l_@@_lbl_int }
-      \zrefcheck_get_asint:nnn {#2} { abssec  } { \l_@@_ref_int }
-      \zrefcheck_get_asint:nnn {#1} { abschap } { \l_@@_lbl_b_int }
-      \zrefcheck_get_asint:nnn {#2} { abschap } { \l_@@_ref_b_int }
+      \zrefcheck_get_asint:nnn {#1} { zc@abssec  } { \l_@@_lbl_int }
+      \zrefcheck_get_asint:nnn {#2} { zc@abssec  } { \l_@@_ref_int }
+      \zrefcheck_get_asint:nnn {#1} { zc@abschap } { \l_@@_lbl_b_int }
+      \zrefcheck_get_asint:nnn {#2} { zc@abschap } { \l_@@_ref_b_int }
       \bool_lazy_and:nnTF
         { \l_@@_integer_bool }
         {
@@ -2104,7 +2233,7 @@
           \int_compare_p:nNn
             { \l_@@_lbl_int } = { \l_@@_ref_int } &&
 %    \end{macrocode}
-% `0' is the default value of \texttt{abssec} property, and means here no
+% `0' is the default value of \texttt{zc@abssec} property, and means here no
 % \cs{section} has yet been issued since its counter has been reset, which
 % occurs at the beginning of the document and at every chapter.  Hence, as is
 % the case for chapters, `0' is just ``not a section''.  The same observation
@@ -2122,10 +2251,10 @@
   {
     \group_begin:
       \bool_set_true:N \l_@@_integer_bool
-      \zrefcheck_get_asint:nnn {#1} { abssec  } { \l_@@_lbl_int }
-      \zrefcheck_get_asint:nnn {#2} { abssec  } { \l_@@_ref_int }
-      \zrefcheck_get_asint:nnn {#1} { abschap } { \l_@@_lbl_b_int }
-      \zrefcheck_get_asint:nnn {#2} { abschap } { \l_@@_ref_b_int }
+      \zrefcheck_get_asint:nnn {#1} { zc@abssec  } { \l_@@_lbl_int }
+      \zrefcheck_get_asint:nnn {#2} { zc@abssec  } { \l_@@_ref_int }
+      \zrefcheck_get_asint:nnn {#1} { zc@abschap } { \l_@@_lbl_b_int }
+      \zrefcheck_get_asint:nnn {#2} { zc@abschap } { \l_@@_ref_b_int }
       \bool_lazy_and:nnTF
         { \l_@@_integer_bool }
         {
@@ -2143,10 +2272,10 @@
   {
     \group_begin:
       \bool_set_true:N \l_@@_integer_bool
-      \zrefcheck_get_asint:nnn {#1} { abssec  } { \l_@@_lbl_int }
-      \zrefcheck_get_asint:nnn {#2} { abssec  } { \l_@@_ref_int }
-      \zrefcheck_get_asint:nnn {#1} { abschap } { \l_@@_lbl_b_int }
-      \zrefcheck_get_asint:nnn {#2} { abschap } { \l_@@_ref_b_int }
+      \zrefcheck_get_asint:nnn {#1} { zc@abssec  } { \l_@@_lbl_int }
+      \zrefcheck_get_asint:nnn {#2} { zc@abssec  } { \l_@@_ref_int }
+      \zrefcheck_get_asint:nnn {#1} { zc@abschap } { \l_@@_lbl_b_int }
+      \zrefcheck_get_asint:nnn {#2} { zc@abschap } { \l_@@_ref_b_int }
       \bool_lazy_and:nnTF
         { \l_@@_integer_bool }
         {
@@ -2165,10 +2294,10 @@
   {
     \group_begin:
       \bool_set_true:N \l_@@_integer_bool
-      \zrefcheck_get_asint:nnn {#1} { abssec  } { \l_@@_lbl_int }
-      \zrefcheck_get_asint:nnn {#2} { abssec  } { \l_@@_ref_int }
-      \zrefcheck_get_asint:nnn {#1} { abschap } { \l_@@_lbl_b_int }
-      \zrefcheck_get_asint:nnn {#2} { abschap } { \l_@@_ref_b_int }
+      \zrefcheck_get_asint:nnn {#1} { zc@abssec  } { \l_@@_lbl_int }
+      \zrefcheck_get_asint:nnn {#2} { zc@abssec  } { \l_@@_ref_int }
+      \zrefcheck_get_asint:nnn {#1} { zc@abschap } { \l_@@_lbl_b_int }
+      \zrefcheck_get_asint:nnn {#2} { zc@abschap } { \l_@@_ref_b_int }
       \bool_lazy_and:nnTF
         { \l_@@_integer_bool }
         {
@@ -2186,10 +2315,10 @@
   {
     \group_begin:
       \bool_set_true:N \l_@@_integer_bool
-      \zrefcheck_get_asint:nnn {#1} { abssec  } { \l_@@_lbl_int }
-      \zrefcheck_get_asint:nnn {#2} { abssec  } { \l_@@_ref_int }
-      \zrefcheck_get_asint:nnn {#1} { abschap } { \l_@@_lbl_b_int }
-      \zrefcheck_get_asint:nnn {#2} { abschap } { \l_@@_ref_b_int }
+      \zrefcheck_get_asint:nnn {#1} { zc@abssec  } { \l_@@_lbl_int }
+      \zrefcheck_get_asint:nnn {#2} { zc@abssec  } { \l_@@_ref_int }
+      \zrefcheck_get_asint:nnn {#1} { zc@abschap } { \l_@@_lbl_b_int }
+      \zrefcheck_get_asint:nnn {#2} { zc@abschap } { \l_@@_ref_b_int }
       \bool_lazy_and:nnTF
         { \l_@@_integer_bool }
         {
-- 
cgit v1.2.3

