[latex3-commits] [git/LaTeX3-latex3-hyperref] testnewkeyval: sort keys in group (d758333)

Ulrike Fischer fischer at troubleshooting-tex.de
Thu Jul 7 15:52:19 CEST 2022


Repository : https://github.com/latex3/hyperref
On branch  : testnewkeyval
Link       : https://github.com/latex3/hyperref/commit/d758333d97a607de32224480bc5314e28b5d00f2

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

commit d758333d97a607de32224480bc5314e28b5d00f2
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu Jul 7 15:52:19 2022 +0200

    sort keys in group


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

d758333d97a607de32224480bc5314e28b5d00f2
 hyperref.dtx | 29 +++++++++++++++++------------
 1 file changed, 17 insertions(+), 12 deletions(-)

diff --git a/hyperref.dtx b/hyperref.dtx
index 4d2214a..06b5158 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -5106,7 +5106,9 @@
 %    \end{macrocode}
 %
 % \section{Options for different drivers}\label{drivers}
-%
+% The driver use a special family with the new keyval handler so that
+% it can be identified and loaded earlier if needed (as it is the case
+% with the generic driver).
 %    \begin{macrocode}
 \newif\ifHy at DviMode
 \let\Hy at DviErrMsg\ltx at empty
@@ -5154,7 +5156,7 @@
     \endinput
   }%
 }
-\DeclareKeys
+\DeclareKeys[hyperref.load]
  {
    ,tex4ht .code:n =
     {
@@ -5185,7 +5187,7 @@
   \fi
 }
 
-\DeclareKeys
+\DeclareKeys[hyperref.load]
  {
    pdftex .code:n =
     {
@@ -5221,7 +5223,7 @@
   \fi
 }
 
-\DeclareKeys
+\DeclareKeys[hyperref.load]
  {
    ,luatex .code:n =
      {
@@ -5258,7 +5260,7 @@
   }%
 }
 
-\DeclareKeys
+\DeclareKeys[hyperref.load]
  {
    ,nativepdf .code:n =
      {
@@ -5322,7 +5324,7 @@
   }%
 }
 
-\DeclareKeys
+\DeclareKeys[hyperref.load]
  {
    ,xetex .code:n =
      {
@@ -5404,7 +5406,7 @@
   \fi
 }
 
-\DeclareKeys
+\DeclareKeys[hyperref.load]
   {
     ,vtex .code:n =
      {
@@ -5483,7 +5485,7 @@
    A current html.sty will do all necessary (re)definitions%
   }%
 }
-\DeclareKeys
+\DeclareKeys[hyperref.load]
   {
     ,dviwindo .code:n =
       {
@@ -5519,7 +5521,7 @@
     \PassOptionsToPackage{dvips}{color}%
   }%
 }
-\DeclareKeys
+\DeclareKeys[hyperref.load]
  {
   ,ps2pdf .code:n =
     {
@@ -5547,7 +5549,7 @@
     }%
   \fi
 }
-\DeclareKeys
+\DeclareKeys[hyperref.load]
  {
    ,driverfallback .choices:nn =
      {dvipdfmx,dvipdfmx,dvips,dvipsone,dviwindo,hypertex,ps2pdf,tex4ht}
@@ -5573,7 +5575,7 @@
   }%
 }
 
-\DeclareKeys
+\DeclareKeys[hyperref.load]
  {
    ,customdriver .code:n =
      {
@@ -6426,7 +6428,7 @@
        {
          \Hy at activate@plainlinks
        }
-      ,hidelinks .code:n
+      ,hidelinks .code:n =
         {
           \Hy at activate@hidelinks
         }
@@ -7446,6 +7448,9 @@
 %
 %    \begin{macrocode}
 \let\ReadBookmarks\relax
+\DeclareUnknownKeyHandler[hyperref.load]{}
+\DeclareUnknownKeyHandler[hyperref]{} %todo think about a sensible test.
+\ProcessKeyOptions[hyperref.load]
 \ProcessKeyOptions
 \ProcessKeyvalOptions{Hyp}
 %    \end{macrocode}





More information about the latex3-commits mailing list.