* typesetting a url from variabless
@ 2006-10-23 22:37 Aditya Mahajan
2006-10-24 14:55 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Aditya Mahajan @ 2006-10-23 22:37 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: typesetting a url from variabless
2006-10-23 22:37 typesetting a url from variabless Aditya Mahajan
@ 2006-10-24 14:55 ` Wolfgang Schuster
2006-10-24 16:51 ` Aditya Mahajan
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2006-10-24 14:55 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 764 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1273 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: typesetting a url from variabless
2006-10-24 14:55 ` Wolfgang Schuster
@ 2006-10-24 16:51 ` Aditya Mahajan
2006-10-24 17:43 ` Sanjoy Mahajan
2006-10-26 7:58 ` Hans Hagen
0 siblings, 2 replies; 5+ messages in thread
From: Aditya Mahajan @ 2006-10-24 16:51 UTC (permalink / raw)
On Tue, 24 Oct 2006, Wolfgang Schuster wrote:
> 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.
I know that the tilde is causing problems, but I do not know how to
prevent that.
> The following example works fine, tested on the garden with live ConTeXt.
Yes, but in my project, I need to pass the complete website address
:-)
Aditya
> \setvariables[garden][website=http://www.contextgarden.net]
>
> \starttext
> \goto{\getvariable{garden}{website}}[URL(\getvariable{garden}{website})]
> \stoptext
>
>
>
> Wolfgang
>
--
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: typesetting a url from variabless
2006-10-24 16:51 ` Aditya Mahajan
@ 2006-10-24 17:43 ` Sanjoy Mahajan
2006-10-26 7:58 ` Hans Hagen
1 sibling, 0 replies; 5+ messages in thread
From: Sanjoy Mahajan @ 2006-10-24 17:43 UTC (permalink / raw)
> I know that the tilde is causing problems, but I do not know how to
> prevent that.
Maybe make the tilde's catcode unactive in a \bgroup \egroup around
the url typesetting? Though if it were that easy, I'm sure the
problem would be fixed long ago...
-Sanjoy
`Never underestimate the evil of which men of power are capable.'
--Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: typesetting a url from variabless
2006-10-24 16:51 ` Aditya Mahajan
2006-10-24 17:43 ` Sanjoy Mahajan
@ 2006-10-26 7:58 ` Hans Hagen
1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2006-10-26 7:58 UTC (permalink / raw)
Aditya Mahajan wrote:
> On Tue, 24 Oct 2006, Wolfgang Schuster wrote:
>
>
>> 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.
>>
>
> I know that the tilde is causing problems, but I do not know how to
> prevent that.
>
>
\expanded{\setvariables[test][website=http://www.xyz.com/\string~abc/first_index.html]}
>
>
>> \starttext
>> \goto{\getvariable{garden}{website}}[URL(\getvariable{garden}{website})]
>> \stoptext
>>
\expanded{\goto{\getvariable{garden}{website}}[URL(\getvariable{garden}{website})]}
--
-----------------------------------------------------------------
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-10-26 7:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-23 22:37 typesetting a url from variabless Aditya Mahajan
2006-10-24 14:55 ` Wolfgang Schuster
2006-10-24 16:51 ` Aditya Mahajan
2006-10-24 17:43 ` Sanjoy Mahajan
2006-10-26 7:58 ` 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).