[latex3-commits] [git/LaTeX3-latex3-pdfresources] main: rename pdfannot-XX-last: to pdfannot-XX-ref-last: (fbca130)

Ulrike Fischer fischer at troubleshooting-tex.de
Sun Feb 14 14:57:33 CET 2021


Repository : https://github.com/latex3/pdfresources
On branch  : main
Link       : https://github.com/latex3/pdfresources/commit/fbca13080675eb74c4e1573fbe143029112993a9

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

commit fbca13080675eb74c4e1573fbe143029112993a9
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sun Feb 14 14:57:33 2021 +0100

    rename pdfannot-XX-last: to pdfannot-XX-ref-last:


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

fbca13080675eb74c4e1573fbe143029112993a9
 hyperref-generic.dtx               |  6 ++----
 l3pdfannot.dtx                     | 21 ++++++++++-----------
 newpackages/hyp-field-checkbox.sty |  2 +-
 testfiles-dvips/annot-last.lvt     |  8 ++++----
 testfiles/annot-last.lvt           |  8 ++++----
 5 files changed, 21 insertions(+), 24 deletions(-)

diff --git a/hyperref-generic.dtx b/hyperref-generic.dtx
index 1315e55..07ad64c 100644
--- a/hyperref-generic.dtx
+++ b/hyperref-generic.dtx
@@ -3815,8 +3815,7 @@
   {
     \exp_args:Nx\HyField@@AddToFields
       {
-        %\pdf_link_last:
-        \pdfannot_box_last:
+        \pdfannot_box_ref_last:
       }
     \ifx\Fld at calculate@code\ltx at empty
     \else
@@ -3832,8 +3831,7 @@
                 \Fld at calculate@sortkey
                }
                {
-                 %  \pdf_link_last:
-                 \pdfannot_box_last:
+                 \pdfannot_box_ref_last:
                }
             }
           \fi
diff --git a/l3pdfannot.dtx b/l3pdfannot.dtx
index da50e69..67266c1 100644
--- a/l3pdfannot.dtx
+++ b/l3pdfannot.dtx
@@ -86,9 +86,9 @@
 %   Hooks are not used.
 % \end{function}
 % \begin{function}[added = 2019-09-05]
-%   { \pdfannot_box_last: }
+%   { \pdfannot_box_ref_last: }
 %   \begin{syntax}
-%     \cs{pdfannot_box_last:}
+%     \cs{pdfannot_box_ref_last:}
 %   \end{syntax}
 %   This retrieves the object reference of the last box annotation created.
 % \end{function}
@@ -224,12 +224,12 @@
 % |name{ZZZZ} has been referenced but does not exist, replaced by a fixed one|
 %
 % \end{function}
-% \begin{function}[added = 2020-03-12]{  \pdfannot_link_last: }
+% \begin{function}[added = 2021-02-14]{  \pdfannot_link_ref_last: }
 %   This retrieves the object reference a link created previously with the commands
 %   above. This doesn't work currently with xelatex but a feature request has
 %   been made. see https://tug.org/pipermail/dvipdfmx/2020-December/000134.html
 % \end{function}
-% \begin{function}[added = 2020-06-29]{  \pdfannot_last: }
+% \begin{function}[added = 2021-02-14]{  \pdfannot_ref_last: }
 %   This retrieves the object reference a previously annotation
 %   created either with a link or a general box command. When the last was a link
 %   it won't work with xelatex.
@@ -322,12 +322,11 @@
 % link under a common name.
 % regarding naming and relation of annotation commands see
 % https://github.com/FrankMittelbach/AccessiblePDF/issues/73
-% \end{NOTE}
-
-%\subsection{Annotations / backend}
+% \subsection{Annotations / backend}
 % The backend commands are in l3backend:
 % \cs{__pdf_backend_annotation:nnnn} and \cs{__pdf_backend_annotation_last:}
 % \cs{__pdf_backend_link_begin_user:nnw}, etc
+% \end{NOTE}
 %
 % \subsection{ General Annotations }
 % \begin{variable}
@@ -351,7 +350,7 @@
     \bool_gset_false:N\g_@@_use_lastlink_bool
   }
 
-\cs_new:Npn \pdfannot_box_last:
+\cs_new:Npn \pdfannot_box_ref_last:
   {
     \__pdf_backend_annotation_last:
   }
@@ -519,12 +518,12 @@
   }
 %    \end{macrocode}
 % \end{macro}
-% \begin{macro}[EXP]{\pdfannot_link_last:, \pdfannot_last:}
+% \begin{macro}[EXP]{\pdfannot_link_ref_last:, \pdfannot_ref_last:}
 %    \begin{macrocode}
-\cs_new:Nn \pdfannot_link_last: { \__pdf_backend_link_last: }
+\cs_new:Nn \pdfannot_link_ref_last: { \__pdf_backend_link_last: }
 %    \end{macrocode}
 %    \begin{macrocode}
-\cs_new:Npn \pdfannot_last:
+\cs_new:Npn \pdfannot_ref_last:
   {
     \bool_if:NTF \g_@@_use_lastlink_bool
       {
diff --git a/newpackages/hyp-field-checkbox.sty b/newpackages/hyp-field-checkbox.sty
index ec6ff51..14e4350 100644
--- a/newpackages/hyp-field-checkbox.sty
+++ b/newpackages/hyp-field-checkbox.sty
@@ -239,7 +239,7 @@
            }
          \hfill
         }
-    \seq_gput_right:cx {g_hyp/checkbox/Field/Btn/#1/Kids_seq}{ \pdfannot_box_last:}
+    \seq_gput_right:cx {g_hyp/checkbox/Field/Btn/#1/Kids_seq}{ \pdfannot_box_ref_last:}
     \group_end:
   }
 % # form and field interface macros
diff --git a/testfiles-dvips/annot-last.lvt b/testfiles-dvips/annot-last.lvt
index 8fcd8a8..866935e 100644
--- a/testfiles-dvips/annot-last.lvt
+++ b/testfiles-dvips/annot-last.lvt
@@ -17,7 +17,7 @@ x    \pdfannot_link_begin:nnw { URI }
      link text
     \pdfannot_link_end:n { URI }
 
-    \pdfannot_last:
+    \pdfannot_ref_last:
 \par
 x   \pdfannot_link:nnn { URI }
      {
@@ -29,10 +29,10 @@ x   \pdfannot_link:nnn { URI }
          >>
      }
      { link text }
-    \pdfannot_last:
+    \pdfannot_ref_last:
 \par
 x\pdfannot_box:nnnn {1cm}{1cm}{1cm}{}
- \pdfannot_link_last:
- \pdfannot_last:
+ \pdfannot_link_ref_last:
+ \pdfannot_ref_last:
 \ExplSyntaxOff
 \end{document} 
\ No newline at end of file
diff --git a/testfiles/annot-last.lvt b/testfiles/annot-last.lvt
index 8fcd8a8..866935e 100644
--- a/testfiles/annot-last.lvt
+++ b/testfiles/annot-last.lvt
@@ -17,7 +17,7 @@ x    \pdfannot_link_begin:nnw { URI }
      link text
     \pdfannot_link_end:n { URI }
 
-    \pdfannot_last:
+    \pdfannot_ref_last:
 \par
 x   \pdfannot_link:nnn { URI }
      {
@@ -29,10 +29,10 @@ x   \pdfannot_link:nnn { URI }
          >>
      }
      { link text }
-    \pdfannot_last:
+    \pdfannot_ref_last:
 \par
 x\pdfannot_box:nnnn {1cm}{1cm}{1cm}{}
- \pdfannot_link_last:
- \pdfannot_last:
+ \pdfannot_link_ref_last:
+ \pdfannot_ref_last:
 \ExplSyntaxOff
 \end{document} 
\ No newline at end of file





More information about the latex3-commits mailing list.