[NTG-context] PDF layer links

Pablo Rodriguez oinos at gmx.es
Wed Nov 6 19:12:46 CET 2019


On 11/6/19 5:07 PM, Philipp A. wrote:
> Hi,
>
> I asked this question some time ago:
> https://tex.stackexchange.com/q/354731/2867

Hi Philipp,

I think this approach is easier to achieve what you want:

    \setupinteraction
        [state=start,
         style=,
         color=,
         contrastcolor=,
         focus=standard]
    \enabledirectives[references.border=red]
    %~ \enabledirectives[references.border]% defaults to grey
    \define[1]\MyURL{{\tt\goto{\hyphenatedurl{#1}}[url(#1)]}}
    \starttext
    \startTEXpage[offset=1em]
        \MyURL{https://wiki.contextgarden.net}
    \stopTEXpage
    \stoptext

At least, this works best with Acrobat.

I hope it helps,

Pablo
--
http://www.ousia.tk


More information about the ntg-context mailing list