summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-07-06 20:19:25 +0000
committerKarl Berry <karl@freefriends.org>2022-07-06 20:19:25 +0000
commit38e572769807e187681735864d58e5f97d4eafd6 (patch)
treeeecd5edd57f40831a7f86bd1c5c9a17d4b4e3153 /Master/texmf-dist/tex/latex
parent329a223cba5826a95623a4e0ad6db6d6a1af26a5 (diff)
zref-check (6jul22)
git-svn-id: svn://tug.org/texlive/trunk@63824 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/zref-check/zref-check.sty29
1 files changed, 16 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/zref-check/zref-check.sty b/Master/texmf-dist/tex/latex/zref-check/zref-check.sty
index e4e709313f9..f5bf8324b2f 100644
--- a/Master/texmf-dist/tex/latex/zref-check/zref-check.sty
+++ b/Master/texmf-dist/tex/latex/zref-check/zref-check.sty
@@ -53,23 +53,20 @@
}%
\endinput
}%
-\ProvidesExplPackage {zref-check} {2022-04-22} {0.3.0}
+\ProvidesExplPackage {zref-check} {2022-07-05} {0.3.1}
{Flexible cross-references with contextual checks based on zref}
\RequirePackage { zref-user }
\RequirePackage { zref-abspage }
\RequirePackage { ifdraft }
-\int_new:N \g__zrefcheck_abschap_int
-\int_new:N \g__zrefcheck_abssec_int
+\newcounter { zc@abschap }
+\newcounter { zc@abssec } [ zc@abschap ]
\AddToHook { cmd / chapter / before }
- {
- \int_gincr:N \g__zrefcheck_abschap_int
- \int_gzero:N \g__zrefcheck_abssec_int
- }
-\zref@newprop { zc@abschap } [0] { \int_use:N \g__zrefcheck_abschap_int }
+ { \stepcounter { zc@abschap } }
+\zref@newprop { zc@abschap } [0] { \int_use:N \c@zc@abschap }
\zref@addprop \ZREF@mainlist { zc@abschap }
\AddToHook { cmd / section / before }
- { \int_gincr:N \g__zrefcheck_abssec_int }
-\zref@newprop { zc@abssec } [0] { \int_use:N \g__zrefcheck_abssec_int }
+ { \stepcounter { zc@abssec } }
+\zref@newprop { zc@abssec } [0] { \int_use:N \c@zc@abssec }
\zref@addprop \ZREF@mainlist { zc@abssec }
\zref@newlist { zrefcheck-check }
\zref@addprops { zrefcheck-check }
@@ -99,9 +96,15 @@
}
\cs_generate_variant:Nn \__zrefcheck_message:nnnn { nnnx }
\msg_new:nnn { zref-check } { check-failed }
- { Failed~check~'#1'~for~label~'#2'~on~page~#3~\msg_line_context:. }
+ {
+ Check~failed~\msg_line_context:.~
+ Failed~check~'#1'~for~label~'#2'~on~page~#3.
+ }
\msg_new:nnn { zref-check } { double-check }
- { Double-check~'#1'~for~label~'#2'~on~page~#3~\msg_line_context:. }
+ {
+ Same~page~check~\msg_line_context:.~
+ Double-check~'#1'~for~label~'#2'~on~page~#3.
+ }
\msg_new:nnn { zref-check } { check-missing }
{ Check~'#1'~not~defined~\msg_line_context:. }
\msg_new:nnn { zref-check } { property-undefined }
@@ -123,7 +126,7 @@
Use~option~'msglevel'~instead.
}
\msg_new:nnn { zref-check } { option-preamble-only }
- { Option~'#1'~only~available~in~the~preamble~\msg_line_context:. }
+ { Option~'#1'~is~preamble~only~\msg_line_context:. }
\msg_new:nnn { zref-check } { closerange-not-positive-integer }
{
Option~'closerange'~not~a~positive~integer~\msg_line_context:.~