[latex3-commits] [git/LaTeX3-latex3-pdfresources] master, reworking-annot: make ocgcolor bool public (dcf602b)
Ulrike Fischer
fischer at troubleshooting-tex.de
Fri Feb 5 19:57:54 CET 2021
Repository : https://github.com/latex3/pdfresources
On branches: master,reworking-annot
Link : https://github.com/latex3/pdfresources/commit/dcf602b07317ab2476d41d5beebf2d1b0b52cedf
>---------------------------------------------------------------
commit dcf602b07317ab2476d41d5beebf2d1b0b52cedf
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Fri Feb 5 19:57:54 2021 +0100
make ocgcolor bool public
>---------------------------------------------------------------
dcf602b07317ab2476d41d5beebf2d1b0b52cedf
hyperref-generic.dtx | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/hyperref-generic.dtx b/hyperref-generic.dtx
index a50a18c..2a86deb 100644
--- a/hyperref-generic.dtx
+++ b/hyperref-generic.dtx
@@ -1232,17 +1232,18 @@
% \end{variable}
% \begin{variable}
% {
-% \l_@@_annot_ocgcolorlink_bool,
-% \l_@@_annot_ocgcolorurl_bool,
-% \l_@@_annot_ocgcolorfile_bool,
-% \l_@@_annot_ocgcolorrun_bool,
-% \l_@@_annot_ocgcolormenu_bool,
+% \l_hyp_annot_ocgcolorlink_bool,
+% \l_hyp_annot_ocgcolorurl_bool,
+% \l_hyp_annot_ocgcolorfile_bool,
+% \l_hyp_annot_ocgcolorrun_bool,
+% \l_hyp_annot_ocgcolormenu_bool,
% }
% These booleans are needed to control the ocgcolors.
+% 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_ocgcolor#1_bool}
+ \bool_new:c {l_hyp_annot_ocgcolor#1_bool}
}
% \end{macrocode}
% \end{variable}
@@ -2272,7 +2273,7 @@
{pdfannot/link/#2/begin}
{hyp/ocg}
{
- \bool_if:cT { l_@@_annot_ocgcolor#1_bool }
+ \bool_if:cT { l_hyp_annot_ocgcolor#1_bool }
{
\@@_ocg_init:
\group_begin:
@@ -2283,7 +2284,7 @@
{pdfannot/link/#2/end}
{hyp/ocg}
{
- \bool_if:cT { l_@@_annot_ocgcolor#1_bool }
+ \bool_if:cT { l_hyp_annot_ocgcolor#1_bool }
{
\hbox_set_end:
\mbox
@@ -2380,7 +2381,7 @@
{
\keys_define:nn { hyp / setup }
{
- ,ocgcolor#1 .bool_set:c = { l_@@_annot_ocgcolor#1_bool }
+ ,ocgcolor#1 .bool_set:c = { l_hyp_annot_ocgcolor#1_bool }
}
}
}
More information about the latex3-commits
mailing list.