Re: [NTG-context] Interactive image

2012-04-20 Thread Kip Warner
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


signature.asc
Description: This is a digitally signed message part
___
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
___

Re: [NTG-context] Interactive image

2012-04-19 Thread Wolfgang Schuster

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
___


[NTG-context] Interactive image

2012-04-19 Thread 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?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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
___