Skip to content

Commit

Permalink
start color conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrike Fischer committed Jan 13, 2021
1 parent 375f7b9 commit 88997a9
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions hyperref-generic.dtx
Expand Up @@ -2114,6 +2114,33 @@
}
,pdfborder .initial:n = {0~0~1},
}
% \end{macrocode}
% Color keys need to parse color expressions. Two types are supported:
% |color=[rgb]{1,0,.5}| and
% |color=red!50!blue|
% \begin{macrocode}
\prop_map_inline:Nn \c_@@_map_hyp_annot_prop
{
\keys_define:nn { hyp / setup }
{
#1bordercolor .code:n =
{
\tl_if_empty:nTF { ##1 }
{
\pdfannot_dict_remove:nn
{link/#2}
{ C }
}
{
\pdfannot_dict_put:nnn
{link/#2}
{ C }
{ [##1] }
}
}
}
}


\prop_map_inline:Nn \c_@@_map_hyp_annot_prop
{
Expand Down

0 comments on commit 88997a9

Please sign in to comment.