[latex3-commits] [git/LaTeX3-latex3-hyperref] testnewkeyval: start with driver keys (35be6b9)
Ulrike Fischer
fischer at troubleshooting-tex.de
Mon Jul 4 20:01:05 CEST 2022
Repository : https://github.com/latex3/hyperref
On branch : testnewkeyval
Link : https://github.com/latex3/hyperref/commit/35be6b91c4d38e03bc7782d8c72c0f4f70c1aa0c
>---------------------------------------------------------------
commit 35be6b91c4d38e03bc7782d8c72c0f4f70c1aa0c
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Mon Jul 4 20:01:05 2022 +0200
start with driver keys
>---------------------------------------------------------------
35be6b91c4d38e03bc7782d8c72c0f4f70c1aa0c
hyperref.dtx | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/hyperref.dtx b/hyperref.dtx
index 78aa9b6..954be0c 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -5154,6 +5154,24 @@
\endinput
}%
}
+\DeclareKeys
+ {
+ tex4ht .code:n =
+ {
+ \Hy at texhttrue
+ \SetKeys[hyperref]{colorlinks=true}%
+ \def\BeforeTeXIVht{\RequirePackage{color}}%
+ \def\Hy at driver{htex4ht}%
+ \def\MaybeStopEarly{%
+ \Hy at Message{Stopped early}%
+ \Hy at AtBeginDocument{%
+ \PDF at FinishDoc
+ \gdef\PDF at FinishDoc{}%
+ }%
+ \endinput
+ }%
+ }
+ }
\DeclareVoidOption{pdftex}{%
\ifpdf
\def\Hy at driver{hpdftex}%
@@ -5165,6 +5183,22 @@
}\@ehc
\fi
}
+
+\DeclareKeys
+ {
+ pdftex .code:n =
+ {
+ \ifpdf
+ \def\Hy at driver{hpdftex}%
+ \else
+ \Hy at Error{%
+ Wrong driver option `pdftex',\MessageBreak
+ because pdfTeX in PDF mode is not detected%
+ }\@ehc
+ \fi
+ }
+ }
+
\DeclareVoidOption{luatex}{%
\ifpdf
\ifx\pdfextension\@undefined
More information about the latex3-commits
mailing list.