texlive[63824] Master/texmf-dist: zref-check (6jul22)

commits+karl at tug.org commits+karl at tug.org
Wed Jul 6 22:19:25 CEST 2022


Revision: 63824
          http://tug.org/svn/texlive?view=revision&revision=63824
Author:   karl
Date:     2022-07-06 22:19:25 +0200 (Wed, 06 Jul 2022)
Log Message:
-----------
zref-check (6jul22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/zref-check/CHANGELOG.md
    trunk/Master/texmf-dist/doc/latex/zref-check/zref-check-code.pdf
    trunk/Master/texmf-dist/doc/latex/zref-check/zref-check.pdf
    trunk/Master/texmf-dist/source/latex/zref-check/zref-check.dtx
    trunk/Master/texmf-dist/tex/latex/zref-check/zref-check.sty

Modified: trunk/Master/texmf-dist/doc/latex/zref-check/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/zref-check/CHANGELOG.md	2022-07-06 20:19:06 UTC (rev 63823)
+++ trunk/Master/texmf-dist/doc/latex/zref-check/CHANGELOG.md	2022-07-06 20:19:25 UTC (rev 63824)
@@ -1,7 +1,14 @@
 # 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)
 
 ### Changed

Modified: trunk/Master/texmf-dist/doc/latex/zref-check/zref-check-code.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/zref-check/zref-check.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/zref-check/zref-check.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/zref-check/zref-check.dtx	2022-07-06 20:19:06 UTC (rev 63823)
+++ trunk/Master/texmf-dist/source/latex/zref-check/zref-check.dtx	2022-07-06 20:19:25 UTC (rev 63824)
@@ -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 at abschap }
+\newcounter { zc at abssec } [ zc at 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 at newprop { zc at abschap } [0] { \int_use:N \g_@@_abschap_int }
+  { \stepcounter { zc at abschap } }
+\zref at newprop { zc at abschap } [0] { \int_use:N \c at zc@abschap }
 \zref at addprop \ZREF at mainlist { zc at abschap }
 %    \end{macrocode}
 %
 %    \begin{macrocode}
 \AddToHook { cmd / section / before }
-  { \int_gincr:N \g_@@_abssec_int }
-\zref at newprop { zc at abssec } [0] { \int_use:N \g_@@_abssec_int }
+  { \stepcounter { zc at abssec } }
+\zref at newprop { zc at abssec } [0] { \int_use:N \c at zc@abssec }
 \zref at addprop \ZREF at mainlist { zc at 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:.~

Modified: trunk/Master/texmf-dist/tex/latex/zref-check/zref-check.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref-check/zref-check.sty	2022-07-06 20:19:06 UTC (rev 63823)
+++ trunk/Master/texmf-dist/tex/latex/zref-check/zref-check.sty	2022-07-06 20:19:25 UTC (rev 63824)
@@ -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 at abschap }
+\newcounter { zc at abssec } [ zc at abschap ]
 \AddToHook { cmd / chapter / before }
-  {
-    \int_gincr:N \g__zrefcheck_abschap_int
-    \int_gzero:N \g__zrefcheck_abssec_int
-  }
-\zref at newprop { zc at abschap } [0] { \int_use:N \g__zrefcheck_abschap_int }
+  { \stepcounter { zc at abschap } }
+\zref at newprop { zc at abschap } [0] { \int_use:N \c at zc@abschap }
 \zref at addprop \ZREF at mainlist { zc at abschap }
 \AddToHook { cmd / section / before }
-  { \int_gincr:N \g__zrefcheck_abssec_int }
-\zref at newprop { zc at abssec } [0] { \int_use:N \g__zrefcheck_abssec_int }
+  { \stepcounter { zc at abssec } }
+\zref at newprop { zc at abssec } [0] { \int_use:N \c at zc@abssec }
 \zref at addprop \ZREF at mainlist { zc at abssec }
 \zref at newlist { zrefcheck-check }
 \zref at 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:.~



More information about the tex-live-commits mailing list.