Re: How to make a hyperlink work inside MetaPost?

Pablo Rodriguez via ntg-context <[email protected]> Sun, 5 Jul 2026 12:43:56 +0200
Newsgroups gmane.comp.tex.context
Message-ID <[email protected]>
On 7/5/26 07:07, Emanuel Han wrote:
> Here’s my attempt (it doesn’t work):

Hi Emanuel,

the hyperlink is generated, but it is just misplaced.

Add `\enabledirectives[references.border]` just after
`\setupinteraction` and you will see link borders in gray.

SumatraPDF (and MuPDF) don’t show link borders, but other PDF viewers (I
mean Acrobat, PDF.js, PDFium, poppler [Okular, Evince, Papers]) do
display them.

I attach the result, just in case my explanation wasn’t clear.

I already reported another link border misplacement a while ago:
https://mailman.ntg.nl/archives/list/[email protected]/thread/4SJPTGWFCAD6PZVNEQBFZIVBFIWKZH3R/.

In that case, scaled links caused the link border displacement and only
in LMTX (LuaTeX compiles that fine).

I have no idea of MP, so I don’t even know how to adapt it to LuaTeX.

Hans, since also my issue still needs a fix, could you take a look at
both misplacements?

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
___________________________________________________________________________________
misplaced-link.png (image/png, 3 KB) - not displayed