From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72385 Path: news.gmane.org!not-for-mail From: Paul Menzel Newsgroups: gmane.comp.tex.context Subject: url: Add macros to the ConTeXt core Date: Sun, 13 Nov 2011 19:38:09 +0100 Message-ID: <1321209489.3396.44.camel@mattotaupa> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0934994467==" X-Trace: dough.gmane.org 1321209522 20947 80.91.229.12 (13 Nov 2011 18:38:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 13 Nov 2011 18:38:42 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 13 19:38:34 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 1RPews-0003rN-AW for gctc-ntg-context-518@m.gmane.org; Sun, 13 Nov 2011 19:38:34 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5D3E0CB0EE; Sun, 13 Nov 2011 19:38:33 +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 NSMNrCfJT1xL; Sun, 13 Nov 2011 19:38:29 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 63600CB0E0; Sun, 13 Nov 2011 19:38:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5B314CB0E0 for ; Sun, 13 Nov 2011 19:38:28 +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 sbMDF31-QcV6 for ; Sun, 13 Nov 2011 19:38:17 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id EDB4ACB0DF for ; Sun, 13 Nov 2011 19:38:16 +0100 (CET) Original-Received: from mail.gw90.de (mail.gw90.de [188.40.100.199]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pADIcBMZ013580 for ; Sun, 13 Nov 2011 19:38:12 +0100 Original-Received: from f053033132.adsl.alicedsl.de ([78.53.33.132] helo=[192.168.178.21]) by mail.gw90.de with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1RPewj-0002JU-Ok for ntg-context@ntg.nl; Sun, 13 Nov 2011 18:38:25 +0000 X-Mailer: Evolution 3.0.3-2 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=188.40.100.199; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rFUGCbfL - 380f6276c6a9 - 20111113 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:72385 Archived-At: --===============0934994467== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-c8NTLvs51is+vm+UFgi1" --=-c8NTLvs51is+vm+UFgi1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear ConTeXt folks, looking into typesetting URLs I find typesetting URLs quite cumbersome. Maybe I have not used that feature that often so I am not seeing the advantage to first define a URL somewhere and give it a name \useURL[aurl] [http://xkcd.com/149/] [] [I prefer hot dogs.] and then later use it. \url[aurl] The proposed macros(?) in the section =C2=BBTipps and Tricks=C2=AB [2] \def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]} \def\ahref#1{\color[linkcolor]{\ttx \href{#1}{<#1>}}} \def\fullahref#1{\color[linkcolor]{\ttx \href{#1}{http://#1}}} \def\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]} \def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1}]} seem quite useful. Could they be added to the ConTeXt core(?)? Thanks, Paul [1] http://wiki.contextgarden.net/url [2] http://wiki.contextgarden.net/url#Tipps_and_Tricks --=-c8NTLvs51is+vm+UFgi1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAk7ADpEACgkQPX1aK2wOHVgklQCdFWKGtnZ4ItprnthGOvG1zuoU +q8AnioNOTB3KIQBWCGu7KxKyVqKRdzo =P60w -----END PGP SIGNATURE----- --=-c8NTLvs51is+vm+UFgi1-- --===============0934994467== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0934994467==--