Hey list, I am typesetting some images with \externalfigure. I'd like to make some of them interactive such that clicking on them invokes a URL, but leaving them without borders. Is there a recommended way to do this, such as wrapping \externalfigure in something like the following? \def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]} \href{www.something...}{\externalfigure[...]} Or is there a better way? -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com
Am 19.04.2012 um 23:42 schrieb Kip Warner:
Hey list,
I am typesetting some images with \externalfigure. I'd like to make some of them interactive such that clicking on them invokes a URL, but leaving them without borders.
Is there a recommended way to do this, such as wrapping \externalfigure in something like the following?
\def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]}
\href{www.something...}{\externalfigure[...]}
Or is there a better way?
\setupinteraction[state=start] \starttext This is a cow: \goto{\externalfigure[cow][height=2ex]}[url(http://en.wikipedia.org/wiki/Cow)] \stoptext Wolfgang
On Thu, 2012-04-19 at 23:53 +0200, Wolfgang Schuster wrote:
\setupinteraction[state=start]
\starttext This is a cow: \goto{\externalfigure[cow][height=2ex]}[url(http://en.wikipedia.org/wiki/Cow)] \stoptext
Thanks Wolfgang. I added it to the wiki: http://wiki.contextgarden.net/Using_Graphics#Picture_with_hyperlink -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com
participants (2)
-
Kip Warner
-
Wolfgang Schuster