[latex3-commits] [git/LaTeX3-latex3-pdfresources] master: move verbose code (16699ec)

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


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

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

commit 16699ec1cdd9ab1acb1933d786a328a6121c23da
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Fri Mar 20 23:38:27 2020 +0100

    move verbose code


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

16699ec1cdd9ab1acb1933d786a328a6121c23da
 hgeneric-experimental.def | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

diff --git a/hgeneric-experimental.def b/hgeneric-experimental.def
index 8092b25..6762136 100644
--- a/hgeneric-experimental.def
+++ b/hgeneric-experimental.def
@@ -341,10 +341,7 @@
   }
 \cs_generate_variant:Nn \__hyp_pstringdef:Nn {No,Nx}
 \cs_set_eq:NN\Hy at pstringdef \__hyp_pstringdef:Nx
-\ExplSyntaxOff
-
 
-\ExplSyntaxOn
 %these patterns are used in hyperref checks.
 %it is unclear if they are really useful and if a backend support is
 %needed.
@@ -504,9 +501,6 @@
 % default:
 \pdf_link_margin:n { 1pt }
 
-\ExplSyntaxOff
-
-\ExplSyntaxOn
 \newcommand\Hy at pstringDest{}
 \tl_new:N \l__hyp_pdfstring_tmp_tl
 
@@ -522,8 +516,7 @@
   }
 \let\pdf at endanchor\@empty
 
-\ExplSyntaxOff
-\ExplSyntaxOn
+
 
 %\cs_new_protected:Npn \Hy at DestName #1 #2 % #1= name #2= fit options
 %  {
@@ -587,25 +580,24 @@
 % #1 is for the color only: found {cite} and {link}
 % #2 is the destination find at pdflink uses then named link
 
-\cs_new_protected:Npn \hyper at linkstart #1 #2
+\cs_new_protected:Npn \hyper at linkstart #1 #2 %#1 ignored, #2=destination name
   {
     \Hy at VerboseLinkStart{#1}{#2}% only for debug
-    \__hyp_link_dest_begin:nw {#2}% #1=color type (fix), #2=destination name
+    \__hyp_link_dest_begin:nw {#2}%
   }
 
-% 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
   {
     \__hyp_link_dest_end:
     \Hy at VerboseLinkStop
   }
 
-\def\hyper at link#1#2#3
+\cs_new_protected:Npn \hyper at link #1 #2 #3 %#1 ignored, #2=destination name, #3 content
  {
   \Hy at VerboseLinkStart{#1}{#2}
   \__hyp_link_dest_begin:nw {#2}#3\Hy at xspace@end
   \__hyp_link_dest_end:
+  \Hy at VerboseLinkStop
 }
 \ExplSyntaxOff
 





More information about the latex3-commits mailing list.