[latex3-commits] [git/LaTeX3-latex3-pdfresources] master: small changes, storing (6087e44)

Ulrike Fischer fischer at troubleshooting-tex.de
Sat Mar 21 16:07:50 CET 2020


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

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

commit 6087e44672d525263626f61cb22a7826730939e7
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Mar 21 16:07:50 2020 +0100

    small changes, storing


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

6087e44672d525263626f61cb22a7826730939e7
 hgeneric-experimental.def |  9 ++++++---
 hyperreflinktypes.tex     | 10 ++++++++++
 hyperrefnotes.tex         |  2 ++
 3 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/hgeneric-experimental.def b/hgeneric-experimental.def
index 046a58b..7f90a4f 100644
--- a/hgeneric-experimental.def
+++ b/hgeneric-experimental.def
@@ -24,6 +24,7 @@
 %% \l__hyp_tmpa_box
 %% \l__hyp_tmpa_tl
 %% \l__hyp_destname_tmpa_tl
+%% \l__hyp_uri_tmpa_tl
 %% \l__hyp_CheckmarkYes_tl
 %% \l__hyp_CheckmarkOff_tl
 %% \l__hyp_RadioYes_tl
@@ -110,6 +111,7 @@
 \box_new:N \l__hyp_tmpa_box
 \tl_new:N  \l__hyp_tmpa_tl
 \tl_new:N  \l__hyp_destname_tmpa_tl %needed?
+\tl_new:N  \l__hyp_uri_tmpa_tl
 
 % const
 \tl_const:Nn \c__hyp_destname_undefined_tl {UNDEFINED}
@@ -599,9 +601,10 @@
   }
 
 %% this command is used for \url
-\def\hyper at linkurl#1#2{%#1:link text #2: URI,
-  \group_begin:
-    \Hy at pstringdef\Hy at pstringURI{#2}%
+\cs_new_protected:Npn \hyper at linkurl #1 #2  %#1:link text #2: URI,
+  {
+    \group_begin:
+    \__hyp_pstringdef:Nn \l__hyp_uri_tmpa_tl { #2 }
     \hyper at chars
     \mode_leave_vertical:
     \pdf_link_user:nnn { url }
diff --git a/hyperreflinktypes.tex b/hyperreflinktypes.tex
index 103c798..0a8af2d 100644
--- a/hyperreflinktypes.tex
+++ b/hyperreflinktypes.tex
@@ -65,3 +65,13 @@ All places in the code where \ifHy at nesting is used are about anchors, not links.
 \ifHy at nesting is false in all drivers, so actually nowhere the true code is used.
 
 It is unclear if nesting can be used, and what use it would have. 
+
+%%%
+\hyper at linkurl:
+2 arguments: #1 the link text, #2 the URI
+defined in the driver
+used in hyperref inside
+ \@hyper at launch run
+ \url@
+ \@hyper at readexternallink
+ \@hyper at linkfile file
\ No newline at end of file
diff --git a/hyperrefnotes.tex b/hyperrefnotes.tex
index d18c4ba..789b6ff 100644
--- a/hyperrefnotes.tex
+++ b/hyperrefnotes.tex
@@ -6,3 +6,5 @@ check use of \@pdfviewparams for dvips ...
 
 \__hyp_pstringdef:Nn: reconsider naming
 check the conversion through the drivers!
+
+replace \hyper at chars
\ No newline at end of file





More information about the latex3-commits mailing list.