From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50266 Path: news.gmane.org!not-for-mail From: Yue Wang Newsgroups: gmane.comp.tex.context Subject: Re: \newcommand ala ConTeXt Date: Tue, 12 May 2009 01:09:10 +0800 Message-ID: <68bfdc900905111009s22f9c9fvfe881dd097fa858d@mail.gmail.com> References: <4A085ADE.1080808@telefonica.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1242061914 10222 80.91.229.12 (11 May 2009 17:11:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 May 2009 17:11:54 +0000 (UTC) Cc: dxpublica@telefonica.net To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 11 19:11:44 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1M3Z2P-0001N2-0t for gctc-ntg-context-518@m.gmane.org; Mon, 11 May 2009 19:11:37 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 95D531FEC1; Mon, 11 May 2009 19:11:36 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32253-03-8; Mon, 11 May 2009 19:10:17 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E341C1FBC9; Mon, 11 May 2009 19:10:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 80BC81FBB8 for ; Mon, 11 May 2009 19:10:15 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31762-05 for ; Mon, 11 May 2009 19:09:36 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by ronja.ntg.nl (Postfix) with ESMTP id 090921FEE8 for ; Mon, 11 May 2009 19:09:13 +0200 (CEST) Original-Received: from mail-qy0-f103.google.com (mail-qy0-f103.google.com [209.85.221.103]) by filter2-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4BH9BG7004191 for ; Mon, 11 May 2009 19:09:12 +0200 Original-Received: by qyk1 with SMTP id 1so4208295qyk.16 for ; Mon, 11 May 2009 10:09:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=AM87WKqcn9HFKxnrE0n+p5LJ/wm8k2oiwGaYrAAz5cw=; b=JjOhivvTGaylGUgLbOuCh23qZ70S81wkr5lzmqk3YYuodt6JsFiooeN9i9eJY/hJnI lhAp/vKAhuM3xHrT7U70U1zg4id30h2qnvVqYFzyjZR3Ht5ObgcOUSl6d3mNboeNDoN/ jByKB1LT79FsMdMLAgiF2sdmYSteAf+TV2jd4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=OG0EWhQKoTnGEYdpN/PjcB/N0iXIJ/nMfm7w+r82eDhU8ig8IBVMj4+TaJTEAEOvMR zI7jXYx9sCUXM7SvhJTu18JCPymUD4rNfy25R0b1r7DIo8guyf+jwWI+2NiLgtonP2pr l2CZHdflSemGePGF4uRWsBJwiHNXJmZOMtwPQ= Original-Received: by 10.229.84.209 with SMTP id k17mr609703qcl.61.1242061751079; Mon, 11 May 2009 10:09:11 -0700 (PDT) In-Reply-To: <4A085ADE.1080808@telefonica.net> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.221.103; 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: 223278575 - 4ed66a4d6751 - 20090511 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:50266 Archived-At: \def\dist#1{d(\sigma_g(#1), \sigma_h(#1))} or something more context way: \define[1]\dist{d(\sigma_g(#1), \sigma_h(#1))} On Tue, May 12, 2009 at 1:05 AM, Xan wrote: > Hi, > > In latex is wonderful be able to make abreviatures like: > > \newcommand{\dist}[1]{d(\sigma_g(#1), \sigma_h(#1))} > > and use like $\dist{t}$, ... for not typing all the text. > > What is the ConTeXt version of that? Please CC mail me. > > Thanks a lot, > Xan. > _________________________________________________________________________= __________ > 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 =A0: http://www.pragma-ade.nl / http://tex.aanhet.net > archive =A0: https://foundry.supelec.fr/projects/contextrev/ > wiki =A0 =A0 : http://contextgarden.net > _________________________________________________________________________= __________ > ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________