texlive[61359] Master/texmf-dist: zref-check (20dec21)

commits+karl at tug.org commits+karl at tug.org
Mon Dec 20 22:31:31 CET 2021


Revision: 61359
          http://tug.org/svn/texlive?view=revision&revision=61359
Author:   karl
Date:     2021-12-20 22:31:31 +0100 (Mon, 20 Dec 2021)
Log Message:
-----------
zref-check (20dec21)

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	2021-12-20 21:31:09 UTC (rev 61358)
+++ trunk/Master/texmf-dist/doc/latex/zref-check/CHANGELOG.md	2021-12-20 21:31:31 UTC (rev 61359)
@@ -1,7 +1,14 @@
 # Changelog
 
-## [Unreleased](https://github.com/gusbrs/zref-check/compare/v0.2.2...HEAD)
+## [Unreleased](https://github.com/gusbrs/zref-check/compare/v0.2.3...HEAD)
 
+## [v0.2.3](https://github.com/gusbrs/zref-check/compare/v0.2.2...v0.2.3) (2021-12-20)
+
+### Fixed
+- Use `main` property list for user facing labels in `\zctarget` and
+  `zcregion` environment, so that references made to them with `zref-clever`
+  contain all required properties.
+
 ## [v0.2.2](https://github.com/gusbrs/zref-check/compare/v0.2.1...v0.2.2) (2021-12-07)
 
 ### 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	2021-12-20 21:31:09 UTC (rev 61358)
+++ trunk/Master/texmf-dist/source/latex/zref-check/zref-check.dtx	2021-12-20 21:31:31 UTC (rev 61359)
@@ -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 at newlist { zrefcheck-check }
 \zref at addprops { zrefcheck-check }
@@ -623,14 +626,6 @@
     zc at abschap ,
     zc at abssec
   }
-\zref at newlist { zrefcheck-target }
-\zref at addprops { zrefcheck-target }
-  {
-    page , % so that \zpageref can refer to it
-    abspage ,
-    zc at abschap ,
-    zc at abssec
-  }
 \zref at newlist { zrefcheck-end }
 \zref at addprops { zrefcheck-end }
   {
@@ -798,10 +793,7 @@
     \@ifpackageloaded { hyperref }
       {
         \bool_if:NT \l_@@_use_hyperref_bool
-          {
-            \RequirePackage { zref-hyperref }
-            \zref at 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 at labelbylist {#1} { zrefcheck-target } }
+  { \zref at label {#1} }
 %    \end{macrocode}
 % \end{macro}
 %

Modified: trunk/Master/texmf-dist/tex/latex/zref-check/zref-check.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref-check/zref-check.sty	2021-12-20 21:31:09 UTC (rev 61358)
+++ trunk/Master/texmf-dist/tex/latex/zref-check/zref-check.sty	2021-12-20 21:31:31 UTC (rev 61359)
@@ -53,7 +53,7 @@
       }%
     \endinput
   }%
-\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}
 \RequirePackage { zref-user }
 \RequirePackage { zref-abspage }
@@ -79,14 +79,6 @@
     zc at abschap ,
     zc at abssec
   }
-\zref at newlist { zrefcheck-target }
-\zref at addprops { zrefcheck-target }
-  {
-    page , % so that \zpageref can refer to it
-    abspage ,
-    zc at abschap ,
-    zc at abssec
-  }
 \zref at newlist { zrefcheck-end }
 \zref at addprops { zrefcheck-end }
   {
@@ -186,10 +178,7 @@
     \@ifpackageloaded { hyperref }
       {
         \bool_if:NT \l__zrefcheck_use_hyperref_bool
-          {
-            \RequirePackage { zref-hyperref }
-            \zref at addprop { zrefcheck-target } { anchor }
-          }
+          { \RequirePackage { zref-hyperref } }
       }
       {
         \bool_if:NT \l__zrefcheck_warn_hyperref_bool
@@ -313,7 +302,7 @@
     labelcmd .value_required:n = true ,
   }
 \cs_new_protected:Npn \__zrefcheck_target_label:n #1
-  { \zref at labelbylist {#1} { zrefcheck-target } }
+  { \zref at label {#1} }
 \AddToHook { begindocument }
   {
     \bool_if:NT \l__zrefcheck_target_label_bool



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