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
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 -----------------------------------------------------------------
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
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
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
___________________________________________________________________________________
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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Khaled Hosny
-
Mohamed Bana