[latex3-commits] [git/LaTeX3-latex3-pdfresources] reworking-annot: starting colorlinks (94ff013)

Ulrike Fischer fischer at troubleshooting-tex.de
Sat Jan 23 01:17:54 CET 2021


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

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

commit 94ff013a4760dff042f8795b787e4e01e0ea5e10
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Jan 23 01:17:54 2021 +0100

    starting colorlinks


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

94ff013a4760dff042f8795b787e4e01e0ea5e10
 hyperref-generic.dtx | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/hyperref-generic.dtx b/hyperref-generic.dtx
index f280525..e0d54da 100644
--- a/hyperref-generic.dtx
+++ b/hyperref-generic.dtx
@@ -2403,7 +2403,17 @@
 %colorlinks unfinished ...
 \keys_define:nn { hyp / setup }
   {
-    ,colorlinks .meta:n = {pdfborder={0~0~0},pdfborderstyle={}}
+    ,colorlinks .meta:n =
+      {
+        ,pdfborder={0~0~0}
+        ,pdfborderstyle={}
+        ,colorurl  =#1
+        ,colorlink =#1
+        ,colorrun  =#1
+        ,colormenu =#1
+        ,colorfile =#1
+        }
+    ,colorlinks .default:n = {true}
   }
 
 % link text colors, we probably need to parse it, but for now it is only stored.
@@ -2411,7 +2421,8 @@
   {
      \keys_define:nn { hyp / setup }
        {
-         #1color .tl_set:c = { l_@@_annot_#1color_tl }
+         ,color#1 .bool_set:c = {l_@@_annot_color#1_bool}
+         ,#1color .tl_set:c = { l_@@_annot_#1color_tl }
        }
   }
 





More information about the latex3-commits mailing list.