From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/2273 Path: main.gmane.org!not-for-mail From: Joop Susan Newsgroups: gmane.comp.tex.context Subject: URL as parameter... Date: Mon, 12 Jun 2000 16:47:56 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <20000612144756.6557.qmail@crux.private.off-line> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035393061 7459 80.91.224.250 (23 Oct 2002 17:11:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:11:01 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:2273 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:2273 Hello, Can anyone tell me how to pass a URL as a parameter to a macro if there is a tilde character present in the string. In the following example, the direct version works, but the macro version has it's '~' character substituted by white space. ================================================== \starttext \setupcolors[state=start] \setupinteraction [state=start] \setupurl [style=italic] {\bf Direct:} \useURL[tmp][http://www.xs4all.nl/~vnf/] \goto {\url[tmp]}[URL(tmp)] {\bf Macro:} \def\utest#1% {\useURL[tmp][#1] % ... % ... \goto {\url[tmp]}[URL(tmp)]} \utest{http://www.xs4all.nl/~vnf/} \stoptext ================================================== Joop