[latex3-commits] [git/LaTeX3-latex3-pdfresources] master, reworking-annot: make color bool public (422a1fa)
Ulrike Fischer
fischer at troubleshooting-tex.de
Fri Feb 5 18:33:34 CET 2021
Repository : https://github.com/latex3/pdfresources
On branches: master,reworking-annot
Link : https://github.com/latex3/pdfresources/commit/422a1fac5d32d8962cf177d3abe17f27cd9aa1bc
>---------------------------------------------------------------
commit 422a1fac5d32d8962cf177d3abe17f27cd9aa1bc
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Fri Feb 5 18:33:34 2021 +0100
make color bool public
>---------------------------------------------------------------
422a1fac5d32d8962cf177d3abe17f27cd9aa1bc
hyperref-generic.dtx | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/hyperref-generic.dtx b/hyperref-generic.dtx
index 0504d25..6b6ce74 100644
--- a/hyperref-generic.dtx
+++ b/hyperref-generic.dtx
@@ -1212,17 +1212,18 @@
% \subsection{Booleans}
% \begin{variable}
% {
-% \l_@@_annot_colorlink_bool,
-% \l_@@_annot_colorurl_bool,
-% \l_@@_annot_colorfile_bool,
-% \l_@@_annot_colorrun_bool,
-% \l_@@_annot_colormenu_bool,
+% \l_hyp_annot_colorlink_bool,
+% \l_hyp_annot_colorurl_bool,
+% \l_hyp_annot_colorfile_bool,
+% \l_hyp_annot_colorrun_bool,
+% \l_hyp_annot_colormenu_bool,
% }
% These booleans are needed to control the colors.
+% They are public so that other packages can query the state too.
% \begin{macrocode}
\seq_map_inline:Nn \c_@@_annot_types_seq
{
- \bool_new:c {l_@@_annot_color#1_bool}
+ \bool_new:c {l_hyp_annot_color#1_bool}
}
% \end{macrocode}
% \end{variable}
@@ -1966,7 +1967,7 @@
{pdfannot/link/#2/begin}
{hyp/color}
{
- \bool_if:cT { l_@@_annot_color#1_bool }
+ \bool_if:cT { l_hyp_annot_color#1_bool }
{
\group_begin:
\@@_color_select:e { \tl_use:c {l_@@_annot_#1color_tl} }
@@ -1976,7 +1977,7 @@
{pdfannot/link/#2/end}
{hyp/color}
{
- \bool_if:cT { l_@@_annot_color#1_bool }
+ \bool_if:cT { l_hyp_annot_color#1_bool }
{
\group_end:
}
@@ -2011,7 +2012,7 @@
{
\keys_define:nn { hyp / setup }
{
- ,color#1 .bool_set:c = { l_@@_annot_color#1_bool }
+ ,color#1 .bool_set:c = { l_hyp_annot_color#1_bool }
,#1color .tl_set:c = { l_@@_annot_#1color_tl }
}
}
More information about the latex3-commits
mailing list.