From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60784 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Commands based on previously defined commands, with fixed values for arguments Date: Sat, 7 Aug 2010 12:33:40 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-711684740-1281198821=:8743" X-Trace: dough.gmane.org 1281198581 11584 80.91.229.12 (7 Aug 2010 16:29:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 7 Aug 2010 16:29:41 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 07 18:29:38 2010 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 1OhmHB-0006n3-Iz for gctc-ntg-context-518@m.gmane.org; Sat, 07 Aug 2010 18:29:37 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E904FCA14C; Sat, 7 Aug 2010 18:29:36 +0200 (CEST) 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 HGwlQko8ALNM; Sat, 7 Aug 2010 18:29:34 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1D756CA151; Sat, 7 Aug 2010 18:29:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5B3FFCA151 for ; Sat, 7 Aug 2010 18:29:33 +0200 (CEST) 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 9QjFrBog53Gb for ; Sat, 7 Aug 2010 18:29:31 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by balder.ntg.nl (Postfix) with ESMTP id 8DC9CCA14C for ; Sat, 7 Aug 2010 18:29:30 +0200 (CEST) Original-Received: FROM [192.168.0.104] (c-71-235-82-170.hsd1.ct.comcast.net [71.235.82.170]) By hackers.mr.itd.umich.edu ID 4C5D89E8.E458D.4190 ; Authuser adityam; 7 Aug 2010 12:29:29 EDT In-Reply-To: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) 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:60784 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-711684740-1281198821=:8743 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Sat, 7 Aug 2010, Vedran Mileti=C4=87 wrote: > How can I define a command by reusing the already defined command? > > \def \HelloTwo #1#2 {Hello, #1 and #2!} > \def \HelloOne #1 {\HelloTwo{#1}{Vedran}} > > This gives me a "Runaway argument". Can you post a complete example? This works for me \def\HelloTwo#1#2{Hello, #1 and #2!} \def\HelloOne#1{\HelloTwo{#1}{Vedran}} \starttext \HelloOne {One} \stoptext Aditya --8323328-711684740-1281198821=:8743 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 ___________________________________________________________________________________ --8323328-711684740-1281198821=:8743--