[latex3-commits] [git/LaTeX3-latex3-pdfresources] reworking-annot: update l3ref-tmp (added existence test) (7cbbc00)

Ulrike Fischer fischer at troubleshooting-tex.de
Wed Dec 30 18:57:47 CET 2020


Repository : https://github.com/latex3/pdfresources
On branch  : reworking-annot
Link       : https://github.com/latex3/pdfresources/commit/7cbbc0038cb7679fea8d6cc7803a3315be80bf8d

>---------------------------------------------------------------

commit 7cbbc0038cb7679fea8d6cc7803a3315be80bf8d
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Wed Dec 30 18:57:47 2020 +0100

    update l3ref-tmp (added existence test)


>---------------------------------------------------------------

7cbbc0038cb7679fea8d6cc7803a3315be80bf8d
 l3ref-tmp.sty | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/l3ref-tmp.sty b/l3ref-tmp.sty
index 1ea86d3..bad1fab 100644
--- a/l3ref-tmp.sty
+++ b/l3ref-tmp.sty
@@ -1,5 +1,5 @@
 %%
-%% This is file `l3ref-tmp.sty',
+%% This is file `l3ref.sty',
 %% generated with the docstrip utility.
 %%
 %% The original source files were:
@@ -19,8 +19,8 @@
 %% and all files in that bundle must be distributed together.
 %% 
 %% File: l3ref.dtx
-\ProvidesExplPackage{l3ref-tmp}{2020-12-26}{}
-  {L3 Experimental cross-referencing -- temporary version!}
+\ProvidesExplPackage{l3ref}{2020-10-09}{}
+  {L3 Experimental cross-referencing}
 \cs_new_protected:Npn \ref_attribute_gset:nnnn #1#2#3#4
   {
     \exp_args:Nx \__ref_attribute_gset:nnnn { \tl_to_str:n {#1} }
@@ -88,6 +88,16 @@
           { \exp_not:n { \textbf { ?? } } }
       }
   }
+\prg_new_conditional:Npnn \ref_if_exist:nn #1#2 { p , T , F,  TF }  % #1 label #2 attribute
+  {
+    \tl_if_exist:cTF { g__ref_label_ \tl_to_str:n {#1} _ \tl_to_str:n {#2} _tl }
+      {
+        \prg_return_true:
+      }
+      {
+        \prg_return_false:
+      }
+  }
 \cs_new_protected:Npn \newlabeldata #1#2
   {
     \__ref_data:nnn {#1} #2 { \q_recursion_tail } { ? } \q_recursion_stop





More information about the latex3-commits mailing list.