From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72420 Path: news.gmane.org!not-for-mail From: Khaled Hosny Newsgroups: gmane.comp.tex.context Subject: Re: url: Add macros to the ConTeXt core Date: Mon, 14 Nov 2011 19:41:27 +0200 Message-ID: <20111114174127.GA2207@khaled-laptop> References: <1321209489.3396.44.camel@mattotaupa> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1321292506 27811 80.91.229.12 (14 Nov 2011 17:41:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Nov 2011 17:41:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 14 18:41:43 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RQ0XN-0007JB-8X for gctc-ntg-context-518@m.gmane.org; Mon, 14 Nov 2011 18:41:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 51A9CCB0E3; Mon, 14 Nov 2011 18:41:40 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id txC8QydBqavb; Mon, 14 Nov 2011 18:41:37 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4B817CB0DC; Mon, 14 Nov 2011 18:41:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A5D9ACB0DC for ; Mon, 14 Nov 2011 18:41:35 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id A85greYsM3ev for ; Mon, 14 Nov 2011 18:41:33 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id E0738CB0D4 for ; Mon, 14 Nov 2011 18:41:33 +0100 (CET) Original-Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pAEHfWOW018028 for ; Mon, 14 Nov 2011 18:41:33 +0100 Original-Received: by wwf10 with SMTP id 10so4857425wwf.2 for ; Mon, 14 Nov 2011 09:41:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=OVgPa2+t+IiwK8XCjmNV1vHX4p40U+HQXHvp9qE+zh8=; b=WFnoqnm6JlxrnSr6dHxIrGGhDh1MOnVSrNzTMUgZl8SP9GepDIt0XnMbrZHSL0aB5h 8R9IbMUKf595EctLwtJTa0BWnTdt4QLe02usPRziZuX+PQLzTJwaJ8fRoJrzIbx6TzRB 88ks9RlMpxpkMYTHvNt0SRf5HPDKVaneCAZgQ= Original-Received: by 10.227.197.10 with SMTP id ei10mr4515422wbb.9.1321292492621; Mon, 14 Nov 2011 09:41:32 -0800 (PST) Original-Received: from localhost ([41.176.166.175]) by mx.google.com with ESMTPS id fw16sm25629042wbb.13.2011.11.14.09.41.30 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 14 Nov 2011 09:41:31 -0800 (PST) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.45; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bFV5FwnN - 0f77cd4bc7ad - 20111114 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:72420 Archived-At: On Mon, Nov 14, 2011 at 04:42:54AM -0500, Aditya Mahajan wrote: > I support having commands which typeset the urls directly, but the macros on the > wiki are not the best ones. > > >\def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]} > > Why not simply: > > \def\href#1#2{\goto{#2}[url(#1)]} I use something like that all the time. Regards, Khaled ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________