From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50268 Path: news.gmane.org!not-for-mail From: Xan Newsgroups: gmane.comp.tex.context Subject: Re: \newcommand ala ConTeXt Date: Mon, 11 May 2009 19:31:31 +0200 Message-ID: <4A0860F3.6000805@telefonica.net> References: <4A085ADE.1080808@telefonica.net> <68bfdc900905111009s22f9c9fvfe881dd097fa858d@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242063177 15138 80.91.229.12 (11 May 2009 17:32:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 May 2009 17:32:57 +0000 (UTC) Cc: mailing list for ConTeXt users To: Yue Wang Original-X-From: ntg-context-bounces@ntg.nl Mon May 11 19:32:46 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 1M3ZMp-0002oU-3u for gctc-ntg-context-518@m.gmane.org; Mon, 11 May 2009 19:32:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 585991FF03; Mon, 11 May 2009 19:32:42 +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 02952-02; Mon, 11 May 2009 19:31:51 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 72E4B1FEC7; Mon, 11 May 2009 19:31:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 60E7D1FEC7 for ; Mon, 11 May 2009 19:31:49 +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 02988-01 for ; Mon, 11 May 2009 19:31:36 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by ronja.ntg.nl (Postfix) with ESMTP id 27E6E1FEB4 for ; Mon, 11 May 2009 19:31:36 +0200 (CEST) Original-Received: from ctsmtpout1.frontal.correo (outmailhost.telefonica.net [213.4.149.242]) by filter1-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4BHVZEl003795 for ; Mon, 11 May 2009 19:31:35 +0200 Original-Received: from [172.26.0.4] (83.55.56.236) by ctsmtpout1.frontal.correo (7.2.056.6) (authenticated as dxpublica) id 4A018F3D000E1DD9; Mon, 11 May 2009 19:31:32 +0200 User-Agent: Thunderbird 2.0.0.21 (X11/20090318) In-Reply-To: <68bfdc900905111009s22f9c9fvfe881dd097fa858d@mail.gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.4.149.242; country=ES; region=29; city=Madrid; latitude=40.4000; longitude=-3.6833; http://maps.google.com/maps?q=40.4000,-3.6833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 223287701 - df519599452b - 20090511 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:50268 Archived-At: Thanks, Yue. I suspected it should be two ways: pure TeX and ConTeXt way. En/na Yue Wang ha escrit: > \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 : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : https://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> ___________________________________________________________________________________ >> >> ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________