[latex3-commits] [git/LaTeX3-latex3-pdfresources] reworking-annot: draft mode (2d64130)
Ulrike Fischer
fischer at troubleshooting-tex.de
Thu Jan 28 18:09:55 CET 2021
Repository : https://github.com/latex3/pdfresources
On branch : reworking-annot
Link : https://github.com/latex3/pdfresources/commit/2d64130384e247301611b3aa4d4f08b2262bd5d8
>---------------------------------------------------------------
commit 2d64130384e247301611b3aa4d4f08b2262bd5d8
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Thu Jan 28 18:09:55 2021 +0100
draft mode
>---------------------------------------------------------------
2d64130384e247301611b3aa4d4f08b2262bd5d8
hyperref-generic.dtx | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/hyperref-generic.dtx b/hyperref-generic.dtx
index 1379a49..493f6d9 100644
--- a/hyperref-generic.dtx
+++ b/hyperref-generic.dtx
@@ -288,6 +288,7 @@
% \item |debug|, |verbose| (a boolean)
% \item |bookmarks| (a boolean)
% \item |plainpages|
+% \item |draft|, |final|
% \end{itemize}
%
% Ignored options:
@@ -298,6 +299,15 @@
% \item |setpagesize|
% \end{itemize}
%
+% \section{Disabling links}
+%
+% \pkg{hyperref} knows like many packages the options |draft| and |final|.
+% With \pkg{hyperref} they can be used as package options or in the preamble
+% in \cs{hypersetup} and disable linking completely. The new driver passes the
+% options also to the \pkg{bookmark} package---this naturally only works if
+% \pkg{bookmark} hasn't been loaded yet when the option is used.
+%
+%
% \section{Draftmode}
% pdftex and other engines knows a
% draftmode which can be set with |\pdfdraftmode=1|
@@ -1829,6 +1839,21 @@
,debug .default:n = {true}
}
+%draft,final
+\keys_define:nn { hyp / setup }
+ {
+ ,draft .code:n =
+ {
+ \Hy at drafttrue
+ \PassOptionsToPackage{draft}{bookmark}
+ }
+ ,final .code:n =
+ {
+ \Hy at finaltrue
+ \PassOptionsToPackage{final}{bookmark}
+ }
+ }
+
\keys_define:nn { hyp / setup }
{
,plainpages .choice:
More information about the latex3-commits
mailing list.