RE: [NTG-context] Activating urls
Thank you Nikolai (and Patrick too!) The following outputs the url but I don't get a hyperlink: ================================================= % output=pdf interface=en \useURL [Adobe] [http://partners.adobe.com/public/developer/en/font/5091.Design_MM_Fonts.pdf] \setupinteraction[state=start] \starttext \url[Adobe]. \stoptext ================================================= Am I missing yet something else? Best Idris ============================ Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523
Idris Samawi Hamid, April 7:
Am I missing yet something else?
How are you viewing this? Perhaps your application doesn’t support hyperlinks, or they have been disabled in it?, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Idris, [First, sorry if you get this twice. I first mailed it from my wrong account] Not exactly sure what you are after, do you want to "print" the url out, or make an active link that clicking on will take you to. If you want to print the url, then \setupcolors [state=start] \setupinteraction [state=start,color=blue] % To use a url, \useURL [mypage] << the cite you will use [http://www.webpage.edu] << the actual web address [] << if you were linking to a file [\tex{My Web page}] << What you want the link to print in the document \starttext This is an example of link usage in \ConTeXt. If the link works, you should see that My Web Page is repeated here \from[mypage] and is highlighted in blue and that the link works. An alternative would be to list the link as a url as in here, \url[mypage]. However, using the url command gets a printing of the url, e.g,. http://www.webpage.edu. \stoptext Hope that helps. Robert On Apr 7, 2005, at 5:11 PM, Nikolai Weibull wrote:
Idris Samawi Hamid, April 7:
Am I missing yet something else?
How are you viewing this? Perhaps your application doesn’t support hyperlinks, or they have been disabled in it?, nikolai
-- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-----BEGIN PGP SIGNATURE----- Version: PGP 8.1 iQA/AwUBQlXVDmO1AQX/YDblEQIXqACgxuUYXNPThkTc4mx+EFdRcOezaz8AnR08 JT3TPhxB8/lJJjA3t7GNI/6V =WsTR -----END PGP SIGNATURE-----
Hi Idris,
The following outputs the url but I don't get a hyperlink:
I get a 'half working' hyperlink. Try to replace '\url' by '\from'. Patrick -------------------------------------------------- \useURL [Adobe] [http://partners.adobe.com/public/developer/en/font/5091.Design_MM_Fonts.pdf] \setupinteraction[state=start] \starttext \from[Adobe]. \stoptext -------------------------------------------------- -- ConTeXt wiki and more: http://contextgarden.net
Patrick Gundlach, April 8:
\from[Adobe].
Aha, is that the right way to do it? I actually get fully working hyperlinks with \url (as far as I can tell), but perhaps \from is the right macro. Sorry about confusion, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
Hi,
\from[Adobe].
Aha, is that the right way to do it?
I'd say yes, but my knowledge is only based on practice and not the source/documentation. (Too lazy to look at it right now.)
I actually get fully working hyperlinks with \url (as far as I can tell), but perhaps \from is the right macro. Sorry about confusion,
I tried Idris' example and found out that it lead to the wrong destination, and the printed hyperlink looked fine (but the real one wasn't). Then I tried \from instead of \url and that gave me the correct behaviour. Pat -- ConTeXt wiki and more: http://contextgarden.net
Patrick Gundlach, April 8:
I get a 'half working' hyperlink. Try to replace '\url' by '\from'.
Actually, for me, both work in acroread (7), nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
I get a 'half working' hyperlink. Try to replace '\url' by '\from'.
Actually, for me, both work in acroread (7),
I think that there is some magic in acroread 7. it parses the text and if it sees a http://someth.ing it will make that active. When looking at the pdf file from the code below, there is only one real annotation object (well, split in 14 sub-objects) coming from the \from-statement. The url generated by the \url command is not correct. -------------------------------------------------- \pdfcompresslevel=0 \setuppagenumbering[location=] \useURL [Adobe] [http://partners.adobe.com/public/developer/en/font/5091.Design_MM_Fonts.pdf] \setupinteraction[state=start] \startbuffer \url[Adobe] \from[Adobe] \stopbuffer \starttext \typebuffer \getbuffer \stoptext -------------------------------------------------- Patrick -- ConTeXt wiki and more: http://contextgarden.net
Patrick Gundlach, April 8:
I get a 'half working' hyperlink. Try to replace '\url' by '\from'.
Actually, for me, both work in acroread (7),
I think that there is some magic in acroread 7. it parses the text and if it sees a http://someth.ing it will make that active.
You are right, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
participants (4)
-
Idris Samawi Hamid
-
Nikolai Weibull
-
Patrick Gundlach
-
Robert Ullrey