* Interactive image
@ 2012-04-19 21:42 Kip Warner
2012-04-19 21:53 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Kip Warner @ 2012-04-19 21:42 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 548 bytes --]
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
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Interactive image
2012-04-19 21:42 Interactive image Kip Warner
@ 2012-04-19 21:53 ` Wolfgang Schuster
2012-04-20 23:12 ` Kip Warner
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2012-04-19 21:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Interactive image
2012-04-19 21:53 ` Wolfgang Schuster
@ 2012-04-20 23:12 ` Kip Warner
0 siblings, 0 replies; 3+ messages in thread
From: Kip Warner @ 2012-04-20 23:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 444 bytes --]
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
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-20 23:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-19 21:42 Interactive image Kip Warner
2012-04-19 21:53 ` Wolfgang Schuster
2012-04-20 23:12 ` Kip Warner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).