From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17160 Path: main.gmane.org!not-for-mail From: "Adam Lindsay" Newsgroups: gmane.comp.tex.context Subject: Re: Re: the url color problem Date: Fri, 19 Nov 2004 15:44:20 +0000 Message-ID: <20041119154420.17419@news.comp.lancs.ac.uk> References: <20041119145403.GA9509@puritan.pcp.ath.cx> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1100879387 25229 80.91.229.6 (19 Nov 2004 15:49:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Nov 2004 15:49:47 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 19 16:49:34 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CVB0w-0004Zn-00 for ; Fri, 19 Nov 2004 16:49:34 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 50AAD126F8; Fri, 19 Nov 2004 16:49:34 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20587-05; Fri, 19 Nov 2004 16:49:34 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6BC1E12780; Fri, 19 Nov 2004 16:46:48 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C2A771277C for ; Fri, 19 Nov 2004 16:46:46 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20590-09 for ; Fri, 19 Nov 2004 16:46:46 +0100 (CET) Original-Received: from mail.comp.lancs.ac.uk (unknown [148.88.3.45]) by ronja.ntg.nl (Postfix) with ESMTP id 9BCAD12780 for ; Fri, 19 Nov 2004 16:44:18 +0100 (CET) Original-Received: from [194.80.36.199] (localhost [127.0.0.1]) by mail.comp.lancs.ac.uk (8.12.10/8.12.10) with ESMTP id iAJFiHqG013608; Fri, 19 Nov 2004 15:44:17 GMT Original-To: "mailing list for ConTeXt users" , "Nikolai Weibull" In-Reply-To: <20041119145403.GA9509@puritan.pcp.ath.cx> X-Mailer: CTM PowerMail version 5.0.1 build 4305 English X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17160 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17160 Nikolai Weibull said this at Fri, 19 Nov 2004 15:54:03 +0100: >Seems to work fine, thanks. Not here. It still gobbles spaces in the label: \unprotect \def\dodouseURL[#1][#2][#3][#4]% {\iffirstargument \iffourthargument \setgvalue{\v!file:::#1}{\doexternaldocument[#2][#3][#4]}% \else\ifthirdargument \setgvalue{\v!file:::#1}{\doexternalurl[#2][#3][#1]}% \else\ifsecondargument \setgvalue{\v!file:::#1}{\doexternalurl[#2][][#1]}% \fi\fi\fi \fi} \def\doexternalurl[#1][#2][#3]% {\bgroup \doifsomething\@@urstyle{\let\@@iastyle\@@urstyle\let\@@urstyle\empty}% \doifsomething\@@urcolor{\let\@@iacolor\@@urcolor\let\@@urcolor\empty}% \doexternaldocument[#1][#2][{\url[#3]}]% \egroup} \protect \setupcolors [state=start] \setupinteraction [state=start] \setupurl [color=blue] \starttext \useURL[something][something with a space][http://pragma-pod.com/] link to \from[something] here. \stoptext -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-