2006/10/24, Aditya Mahajan <adityam@umich.edu>:
Hi,
What is the best way of typesetting a url from a variable. For
example, if I have

\setvariables[test][website= http://www.xyz.com/~abc/first_index.html]

how can I print the url. I tried

\starttext
\goto{\getvariable{test}{website}}[URL(\getvariable{test}{website})]
\stoptext

but this does not seem to work. Any suggestions?

Aditya
 
Hi Aditya,
 
you should look into the log-file and will see it is a problem with the tilde
in the url.
 
The following example works fine, tested on the garden with live ConTeXt.
 
\setvariables[garden][website=http://www.contextgarden.net]

\starttext
  \goto{\getvariable{garden}{website}}[URL(\getvariable{garden}{website})]
\stoptext

 

Wolfgang