[latex3-commits] [git/LaTeX3-latex3-pdfresources] master: renamed command, moved verbose code (e866b37)

Ulrike Fischer fischer at troubleshooting-tex.de
Fri Mar 20 23:19:22 CET 2020


Repository : https://github.com/latex3/pdfresources
On branch  : master
Link       : https://github.com/latex3/pdfresources/commit/e866b37c38a86b143bbd7c02d9c5340c31254d32

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

commit e866b37c38a86b143bbd7c02d9c5340c31254d32
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Fri Mar 20 23:19:22 2020 +0100

    renamed command, moved verbose code


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

e866b37c38a86b143bbd7c02d9c5340c31254d32
 hgeneric-experimental.def | 22 ++++++++++------------
 1 file changed, 10 insertions(+), 12 deletions(-)

diff --git a/hgeneric-experimental.def b/hgeneric-experimental.def
index 498e62c..8092b25 100644
--- a/hgeneric-experimental.def
+++ b/hgeneric-experimental.def
@@ -7,8 +7,9 @@
 %% drivers are loaded in line 4745 in hyperref.sty in a \Hy at AtEndOfPackage command.
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %% list of new internal commands
-%% \__hyp_link_begin_goto:nw : start command for links to internal destination
+%% \__hyp_link_dest_begin:nw : start command for links to internal destination
 %%                             replaces \find at pdflink
+%% \__hyp_link_dest_end:
 %% \__hyp_pagelabels_gput:n : puts pagelabels in the catalog.
 %% \__hyp_pstringdef:Nn     : replaces Hy at pstringdef, converts n to pdfstring and stores in N
 %%                            naming??
@@ -534,7 +535,7 @@
 \tl_new:N \l__hyp_destname_tmpa_tl
 
 %\def\find at pdflink#1#2
-\cs_new_protected:Npn \__hyp_link_begin_goto:nw #1
+\cs_new_protected:Npn \__hyp_link_dest_begin:nw #1
   {
     \mode_leave_vertical:
     \protected at edef\l__hyp_destname_tmpa_tl { #1 }
@@ -557,14 +558,10 @@
          \Hy at colorlink\@linkcolor
   }
 
-\ExplSyntaxOn
-
-%experiment end link code
-\cs_new_protected:Npn \close at EXPpdflink #1
+\cs_new_protected:Npn \__hyp_link_dest_end:
   {
     \Hy at endcolorlink
-    \Hy at VerboseLinkStop
-    \pdf_link_end:n { #1 }
+    \pdf_link_end:n { link }
   }
 
 
@@ -593,21 +590,22 @@
 \cs_new_protected:Npn \hyper at linkstart #1 #2
   {
     \Hy at VerboseLinkStart{#1}{#2}% only for debug
-    \__hyp_link_begin_goto:nw {#2}% #1=color type (fix), #2=destination name
+    \__hyp_link_dest_begin:nw {#2}% #1=color type (fix), #2=destination name
   }
 
 % the endlink muss have the same type as the start?
 % probably always link works ? But what is with my hooks???
 \cs_new_protected:Npn \hyper at linkend
   {
-    \close at EXPpdflink { link }
+    \__hyp_link_dest_end:
+    \Hy at VerboseLinkStop
   }
 
 \def\hyper at link#1#2#3
  {
   \Hy at VerboseLinkStart{#1}{#2}
-  \__hyp_link_begin_goto:nw {#2}#3\Hy at xspace@end
-  \close at EXPpdflink { link }
+  \__hyp_link_dest_begin:nw {#2}#3\Hy at xspace@end
+  \__hyp_link_dest_end:
 }
 \ExplSyntaxOff
 





More information about the latex3-commits mailing list.