Hyperref-style borders around clickable links
Hi, I prefer links to be styled as normal text, but I'd nevertheless to highlight them somehow on screen. The LaTeX package Hyperref adds red frames to clickable content. Is something like that possible with ConTeXt? Best, Denis
Ok, found a (partial) solution myself in Pablo's question from yesterday... \setupinteraction[state=start] \enabledirectives[references.border] does that. But how do I configure the borders? Color? Style and so? Couldn't find anything on the Wiki. Best, Denis Am 08.10.2020 um 10:34 schrieb Denis Maier:
Hi,
I prefer links to be styled as normal text, but I'd nevertheless to highlight them somehow on screen. The LaTeX package Hyperref adds red frames to clickable content. Is something like that possible with ConTeXt?
Best, Denis
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
Am 08.10.2020 um 10:41 schrieb Denis Maier
: Ok, found a (partial) solution myself in Pablo's question from yesterday...
\setupinteraction[state=start] \enabledirectives[references.border]
does that. But how do I configure the borders? Color? Style and so? Couldn't find anything on the Wiki.
\setupinteraction[color=,contrastcolor=,] lets all links use the basic text color (usually black). You can also set the style. The frames are meant for debugging, probably you can redefine the color; ATM I’m not patient enough for searching the sources for this (and Wolfgang probably knows it from heart anyway). Hraban
Am 08.10.2020 um 11:36 schrieb Henning Hraban Ramm:
Am 08.10.2020 um 10:41 schrieb Denis Maier
: Ok, found a (partial) solution myself in Pablo's question from yesterday...
\setupinteraction[state=start] \enabledirectives[references.border]
does that. But how do I configure the borders? Color? Style and so? Couldn't find anything on the Wiki. \setupinteraction[color=,contrastcolor=,] lets all links use the basic text color (usually black). You can also set the style. Yep, I have that already in my settings.
The frames are meant for debugging, probably you can redefine the color; So, you would advice against using these frames?
Denis
On 10/8/20 11:40 AM, Denis Maier wrote:
Am 08.10.2020 um 11:36 schrieb Henning Hraban Ramm:
Am 08.10.2020 um 10:41 schrieb Denis Maier
: Ok, found a (partial) solution myself in Pablo's question from yesterday...
\setupinteraction[state=start] \enabledirectives[references.border]
does that. But how do I configure the borders? Color? Style and so? Couldn't find anything on the Wiki. \setupinteraction[color=,contrastcolor=,] lets all links use the basic text color (usually black). You can also set the style. Yep, I have that already in my settings.
The frames are meant for debugging, probably you can redefine the color; So, you would advice against using these frames?
Sorry, Hraban, these link rectangles are always there. Otherwise there would be no link annotations. What "\enabledirectives[references.border]" is width to border and color (so they can be displayed). See https://www.adobe.com/content/dam/acom/en/devnet/pdf/PDF32000_2008.pdf#named.... Just in case it helps, Paboo -- http://www.ousia.tk
participants (3)
-
Denis Maier
-
Henning Hraban Ramm
-
Pablo Rodriguez