From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/2299 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: URL as parameter... Date: Wed, 14 Jun 2000 15:58:26 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20000614155826.0161dcd0@pop.wxs.nl> References: <20000614100157.11715.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 1035393088 7694 80.91.224.250 (23 Oct 2002 17:11:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:11:28 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Joop Susan In-Reply-To: <20000614100157.11715.qmail@crux.private.off-line> Xref: main.gmane.org gmane.comp.tex.context:2299 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:2299 >The following source still does not work. The typesetting is correct, but >the url passed to Netscape is still incorrect. The tilde is expanded >somewhere. The url that is mangled by the macro, is passed to netscape as: >"http://www.xs4all.nl/ ormalpenalty 10000 vnf/" instead of >"http://www.xs4all.nl/~vnf/". Netscape does not appreciate this... Ah, you're talking about the non typeset one. I can fix that one, but it must be done careful, so I'll do it when I have time for it. The problem is in passing the dangerous ~ as argument, and \useURL handles that in a special way, but only outside macros. You can define your test as: \def\utest#1% {{\def~{\string~}\useURL[tmp][#1]\goto{\url[tmp]}[URL(tmp)]}} \def\utest#1% {{\let~\tildeletter\useURL[tmp][#1]\goto{\url[tmp]}[URL(tmp)]}} \def\utest#1% {\convertargument#1\to\ascii \expanded{\useURL[tmp][\ascii]}% \goto{\url[tmp]}[URL(tmp)]} Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl -----------------------------------------------------------------