summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/zref-check
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-07-06 03:01:05 +0000
committerNorbert Preining <norbert@preining.info>2022-07-06 03:01:05 +0000
commit9f9a07ef2eb0c1f25ce9afc7bb94928956c036ea (patch)
treea706b2c99b27a20164dcda46d097faaa1d42113a /macros/latex/contrib/zref-check
parentf1e3d1ca3738aac0ba720e4c1d87795d5d0cdcd9 (diff)
CTAN sync 202207060301
Diffstat (limited to 'macros/latex/contrib/zref-check')
-rw-r--r--macros/latex/contrib/zref-check/CHANGELOG.md9
-rw-r--r--macros/latex/contrib/zref-check/zref-check-code.pdfbin742306 -> 744434 bytes
-rw-r--r--macros/latex/contrib/zref-check/zref-check.dtx29
-rw-r--r--macros/latex/contrib/zref-check/zref-check.pdfbin452289 -> 465779 bytes
4 files changed, 24 insertions, 14 deletions
diff --git a/macros/latex/contrib/zref-check/CHANGELOG.md b/macros/latex/contrib/zref-check/CHANGELOG.md
index d74dbe3dad..58bbedaf72 100644
--- a/macros/latex/contrib/zref-check/CHANGELOG.md
+++ b/macros/latex/contrib/zref-check/CHANGELOG.md
@@ -1,6 +1,13 @@
# Changelog
-## [Unreleased](https://github.com/gusbrs/zref-check/compare/v0.3.0...HEAD)
+## [Unreleased](https://github.com/gusbrs/zref-check/compare/v0.3.1...HEAD)
+
+## [v0.3.1](https://github.com/gusbrs/zref-check/compare/v0.3.0...v0.3.1) (2022-07-05)
+
+### Changed
+- Adjust some warning messages to try to improve machine-readability, and thus
+ editor parsing, of the log (see https://tex.stackexchange.com/q/649548).
+- (Internal) Use standard counters to keep track of sections and chapters.
## [v0.3.0](https://github.com/gusbrs/zref-check/compare/v0.2.5...v0.3.0) (2022-04-22)
diff --git a/macros/latex/contrib/zref-check/zref-check-code.pdf b/macros/latex/contrib/zref-check/zref-check-code.pdf
index a1a9a62ba0..2868afd617 100644
--- a/macros/latex/contrib/zref-check/zref-check-code.pdf
+++ b/macros/latex/contrib/zref-check/zref-check-code.pdf
Binary files differ
diff --git a/macros/latex/contrib/zref-check/zref-check.dtx b/macros/latex/contrib/zref-check/zref-check.dtx
index 9647be95fe..4417cb7ead 100644
--- a/macros/latex/contrib/zref-check/zref-check.dtx
+++ b/macros/latex/contrib/zref-check/zref-check.dtx
@@ -516,7 +516,7 @@
%
% Identify the package.
% \begin{macrocode}
-\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}
% \end{macrocode}
%
@@ -539,8 +539,8 @@
% suggestions at TeX.SX about the proper place to make the hooks for this
% purpose.
% \begin{macrocode}
-\int_new:N \g_@@_abschap_int
-\int_new:N \g_@@_abssec_int
+\newcounter { zc@abschap }
+\newcounter { zc@abssec } [ zc@abschap ]
% \end{macrocode}
% \end{variable}
%
@@ -550,18 +550,15 @@
% one never reset.
% \begin{macrocode}
\AddToHook { cmd / chapter / before }
- {
- \int_gincr:N \g_@@_abschap_int
- \int_gzero:N \g_@@_abssec_int
- }
-\zref@newprop { zc@abschap } [0] { \int_use:N \g_@@_abschap_int }
+ { \stepcounter { zc@abschap } }
+\zref@newprop { zc@abschap } [0] { \int_use:N \c@zc@abschap }
\zref@addprop \ZREF@mainlist { zc@abschap }
% \end{macrocode}
%
% \begin{macrocode}
\AddToHook { cmd / section / before }
- { \int_gincr:N \g_@@_abssec_int }
-\zref@newprop { zc@abssec } [0] { \int_use:N \g_@@_abssec_int }
+ { \stepcounter { zc@abssec } }
+\zref@newprop { zc@abssec } [0] { \int_use:N \c@zc@abssec }
\zref@addprop \ZREF@mainlist { zc@abssec }
% \end{macrocode}
%
@@ -618,9 +615,15 @@
%
% \begin{macrocode}
\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.
+ }
% \end{macrocode}
%
% \begin{macrocode}
@@ -648,7 +651,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:.~
diff --git a/macros/latex/contrib/zref-check/zref-check.pdf b/macros/latex/contrib/zref-check/zref-check.pdf
index fb0e239f4a..8f94754f00 100644
--- a/macros/latex/contrib/zref-check/zref-check.pdf
+++ b/macros/latex/contrib/zref-check/zref-check.pdf
Binary files differ