[NTG-context] typesetting a url from variabless

Wolfgang Schuster schuster.wolfgang at googlemail.com
Tue Oct 24 16:55:16 CEST 2006


2006/10/24, Aditya Mahajan <adityam at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ntg.nl/pipermail/ntg-context/attachments/20061024/6d70223d/attachment.html 


More information about the ntg-context mailing list