[latex3-commits] [git/LaTeX3-latex3-hyperref] testnewkeyval: convert more keys (c4f4d67)
Ulrike Fischer
fischer at troubleshooting-tex.de
Mon Jul 4 18:54:53 CEST 2022
Repository : https://github.com/latex3/hyperref
On branch : testnewkeyval
Link : https://github.com/latex3/hyperref/commit/c4f4d675925eac768208da6661c680a5996c4991
>---------------------------------------------------------------
commit c4f4d675925eac768208da6661c680a5996c4991
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Mon Jul 4 18:54:53 2022 +0200
convert more keys
>---------------------------------------------------------------
c4f4d675925eac768208da6661c680a5996c4991
hyperref.dtx | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/hyperref.dtx b/hyperref.dtx
index be60e9c..18f4b53 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -4944,6 +4944,7 @@
\fi
}
% \end{macrocode}
+% TODO: deprecate pdfencoding??
% \begin{macrocode}
\define at key{Hyp}{pdfencoding}{%
\edef\HyPsd at temp{#1}%
@@ -4981,6 +4982,15 @@
\fi
\fi
}
+\DeclareKeys
+ {
+ ,pdfencoding .code:n =
+ {
+ \Hy at Warning{option 'pdfencoding' is deprecated and ignored.\MessageBreak
+ Unicode is used always.}
+ }
+ ,pdfencoding .usage:n = load
+ }
\def\HyPsd at pdfencoding@auto{auto}
\def\HyPsd at pdfencoding@pdfdoc{pdfdoc}
\def\HyPsd at pdfencoding@unicode{unicode}
@@ -5012,10 +5022,25 @@
\Hy at boolkey{psdextra}{#1}%
\HyPsd at LoadExtra
}
+\DeclareKeys
+ {
+ ,psdextra .choice:
+ ,psdextra / true .code:n =
+ {
+ \legacy_if_set_true:n {Hy at psdextra}
+ \HyPsd at LoadExtra
+ }
+ ,psdextra / false .code:n =
+ {
+ \legacy_if_set_false:n {Hy at psdextra}
+ }
+ ,psdextra .default:n = true
+ }
% \end{macrocode}
%
% \begin{macrocode}
\def\hypersetup{\kvsetkeys{Hyp}}
+\def\hypersetup{\SetKeys[hyperref]}
% \end{macrocode}
%
% \begin{macrocode}
More information about the latex3-commits
mailing list.