ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Hyperlinks with MkIV
@ 2009-08-18  8:07 Khaled Hosny
  2009-08-18  8:29 ` Hans Hagen
  2009-08-18 11:07 ` Mohamed Bana
  0 siblings, 2 replies; 5+ messages in thread
From: Khaled Hosny @ 2009-08-18  8:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 402 bytes --]

Any idea how to get hyperlinks to work in MkIV? The following example
works fine for MkII, but no color nor hyperlink in MkIV.

\setupcolors[state=start]
\setupinteraction[state=start]
\useURL [garden][http://contextgarden.net][][Context garden]
\starttext
The \from[garden] is useful.
\stoptext


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Hyperlinks with MkIV
  2009-08-18  8:07 Hyperlinks with MkIV Khaled Hosny
@ 2009-08-18  8:29 ` Hans Hagen
  2009-08-18  8:51   ` Khaled Hosny
  2009-08-18 11:07 ` Mohamed Bana
  1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2009-08-18  8:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Khaled Hosny wrote:
> Any idea how to get hyperlinks to work in MkIV? The following example
> works fine for MkII, but no color nor hyperlink in MkIV.
> 
> \setupcolors[state=start]
> \setupinteraction[state=start]
> \useURL [garden][http://contextgarden.net][][Context garden]
> \starttext
> The \from[garden] is useful.
> \stoptext

\def\dodospecialfrom[#1]%
   {\dontleavehmode\goto{\ctxlua{jobreferences.from("#1")}}[url(#1)]}


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Hyperlinks with MkIV
  2009-08-18  8:29 ` Hans Hagen
@ 2009-08-18  8:51   ` Khaled Hosny
  0 siblings, 0 replies; 5+ messages in thread
From: Khaled Hosny @ 2009-08-18  8:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 670 bytes --]

On Tue, Aug 18, 2009 at 10:29:10AM +0200, Hans Hagen wrote:
> Khaled Hosny wrote:
>> Any idea how to get hyperlinks to work in MkIV? The following example
>> works fine for MkII, but no color nor hyperlink in MkIV.
>>
>> \setupcolors[state=start]
>> \setupinteraction[state=start]
>> \useURL [garden][http://contextgarden.net][][Context garden]
>> \starttext
>> The \from[garden] is useful.
>> \stoptext
>
> \def\dodospecialfrom[#1]%
>   {\dontleavehmode\goto{\ctxlua{jobreferences.from("#1")}}[url(#1)]}

This fixes it (needs luatex trunk though), thanks.


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Hyperlinks with MkIV
  2009-08-18  8:07 Hyperlinks with MkIV Khaled Hosny
  2009-08-18  8:29 ` Hans Hagen
@ 2009-08-18 11:07 ` Mohamed Bana
  2009-08-18 12:41   ` Hans Hagen
  1 sibling, 1 reply; 5+ messages in thread
From: Mohamed Bana @ 2009-08-18 11:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1335 bytes --]

i still don't understand why so much code is needed to do something so
simple.  there should be a simple macro that takes a url only.
- Mohamed


2009/8/18 Khaled Hosny <khaledhosny@eglug.org>

> Any idea how to get hyperlinks to work in MkIV? The following example
> works fine for MkII, but no color nor hyperlink in MkIV.
>
> \setupcolors[state=start]
> \setupinteraction[state=start]
> \useURL [garden][http://contextgarden.net][][Context garden]
> \starttext
> The \from[garden] is useful.
> \stoptext
>
>
> --
>  Khaled Hosny
>  Arabic localiser and member of Arabeyes.org team
>  Free font developer
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkqKYUcACgkQRoqITGOuyPInSgCfXlMgeqVmyjIxgluxbXtJ689j
> DnAAnjexU8h0Nmqgo8jYe4eZZuarWbHn
> =jSR3
> -----END PGP SIGNATURE-----
>
>
> ___________________________________________________________________________________
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>
>

[-- Attachment #1.2: Type: text/html, Size: 2146 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Hyperlinks with MkIV
  2009-08-18 11:07 ` Mohamed Bana
@ 2009-08-18 12:41   ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2009-08-18 12:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Mohamed Bana wrote:
> i still don't understand why so much code is needed to do something so
> simple.  there should be a simple macro that takes a url only.

this mechanism permits users to collect definitions of urls in one place 
and use symbolic names; of course, when you love keying in the same url 
many times you can use

you can .. \goto{...}[url(...)]


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-08-18 12:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-18  8:07 Hyperlinks with MkIV Khaled Hosny
2009-08-18  8:29 ` Hans Hagen
2009-08-18  8:51   ` Khaled Hosny
2009-08-18 11:07 ` Mohamed Bana
2009-08-18 12:41   ` Hans Hagen

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).