[latex3-commits] [git/LaTeX3-latex3-pdfresources] reworking-annot: load generic hyperref driver by default (acb93c8)

Ulrike Fischer fischer at troubleshooting-tex.de
Fri Jan 8 10:54:41 CET 2021


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

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

commit acb93c8810d9281bdf931f6ca2c458e0cb44678c
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Fri Jan 8 10:54:41 2021 +0100

    load generic hyperref driver by default


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

acb93c8810d9281bdf931f6ca2c458e0cb44678c
 ltdocinit.dtx | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/ltdocinit.dtx b/ltdocinit.dtx
index 6e344cd..0d1137b 100644
--- a/ltdocinit.dtx
+++ b/ltdocinit.dtx
@@ -125,9 +125,21 @@
         \RequirePackage{l3pdfannot}
         \bool_gset_true:N \g__pdfmanagement_active_bool
         \keys_set_filter:nnn  { pdf / setup } { init } { #1 }
+        \bool_if:NT \g__pdfmanagement_active_bool
+          {
+            \PassOptionsToPackage{customdriver=hgeneric-experimental}{hyperref}
+          }
         \RenewDocumentCommand\DeclareDocumentMetadata { m }
           {
             \keys_set_filter:nnn  { pdf / setup } { init } { ##1 }
+            \bool_if:NTF \g__pdfmanagement_active_bool
+             {
+               \str_remove_all:cn {opt at hyperref.sty}{customdriver=hgeneric-experimental}
+               \PassOptionsToPackage{customdriver=hgeneric-experimental}{hyperref}
+             }
+             {
+               \str_remove_all:cn {opt at hyperref.sty}{customdriver=hgeneric-experimental}
+             }
           }
       }
   }





More information about the latex3-commits mailing list.