Hi Hans,
I have the following source, which tries to resemble three kinds of links:
\setupinteraction[state=start, style=, focus=standard]
\def\inone#1{%
\start\setupinteraction[color=darkgreen]%
\enabledirectives[references.border=darkgreen]%
\goto{#1}[url(#1)]\stop}
\def\intwo#1{%
\start\setupinteraction[color=darkred]%
\enabledirectives[references.border=darkred]%
\goto{#1}[url(#1)]\stop}
\def\inthree#1{%
\start\setupinteraction[color=darkblue]%
\enabledirectives[references.border=darkblue]%
\goto{#1}[url(#1)]\stop}
\starttext
\startTEXpage[offset=1dk, align=middle]
\inone{one}\blank
\intwo{two}\blank
\inthree{three}\blank
\stopTEXpage
\chapter[one]{First chapter}
\chapter[two]{Second chapter}
\chapter[three]{Second chapter}
\stoptext
I see that the directive for link borders only allows one color for
links per document.
In my real-world documents, I need to make three different border links:
for destinations inside the document (/GoTo), for destinations in other
documents (/GoToR or /GoToE) and for external destinations (/URI).
With the current document I write now, I have over a hundred links in
twenty pages. Being able to visually distinguish each link helps
interaction with the document (reading or even writing it).
Would it be possible that \setupinteraction could have a bordercolor
key, such as the color one?
Many thanks for your help,
Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________