From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87515 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: Simple command with variable number of arguments Date: Fri, 23 May 2014 12:08:02 +0200 Message-ID: <88224861-86DA-4A37-BEDC-66F9A3F822D4@gmail.com> References: <6EAF5FDE-7BE4-4766-B683-FA9994227A04@indiana.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1400839711 24025 80.91.229.3 (23 May 2014 10:08:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 May 2014 10:08:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri May 23 12:08:27 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WnmOo-00030h-2G for gctc-ntg-context-518@m.gmane.org; Fri, 23 May 2014 12:08:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BED8210240 for ; Fri, 23 May 2014 12:08:25 +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 4Wqor4PrC-CC for ; Fri, 23 May 2014 12:08:25 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 76FB6101F2 for ; Fri, 23 May 2014 12:08:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3B6DD101EE for ; Fri, 23 May 2014 12:08:18 +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 4pr27v179JJA for ; Fri, 23 May 2014 12:08:14 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id A5983101EC for ; Fri, 23 May 2014 12:08:14 +0200 (CEST) Original-Received: from mail-we0-x233.google.com (mail-we0-x233.google.com [IPv6:2a00:1450:400c:c03::233]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s4NA84HX024191 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 23 May 2014 12:08:14 +0200 Original-Received: by mail-we0-f179.google.com with SMTP id q59so4581397wes.38 for ; Fri, 23 May 2014 03:08:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=EKVPHFgBqheRX4unsMMAeb3C2+2hqZOViE5L3CUxGQQ=; b=m79cU/udxdmXG+hWf2i502sP4xwxN6x7GHTxy6Z0PnJcMk6Bfwpbq5WoH8+85t7Ha8 o7rAE5SQ6yZ9Hm9IW1sg5JRJWPEiMj7u7P0J9RXJEBHdnIVcWYlA5zcpN9XbY4N8NqdC cMMcXaHqpnyHr8b4djb/HbvfOki/aqQF4cPYVCasau0dnj+XlQHiMlt6ob8wpS/jlmG+ aq4aSfaCyY4Mo4WH/3FIJTqJZlfEdTbqr0QP1jFmSE6HgPa256v28LTAl8cF7i+KtRct V4hUYOJ0bPGEOaCsPd4VQ8Iclh6/hWiXH6uO/BhcUwRiEGIrQtREg0ZoFh3hkuqOIqKw dqBA== X-Received: by 10.180.185.100 with SMTP id fb4mr2313198wic.11.1400839684097; Fri, 23 May 2014 03:08:04 -0700 (PDT) Original-Received: from [192.168.0.20] (seg75-6-82-236-32-4.fbx.proxad.net. [82.236.32.4]) by mx.google.com with ESMTPSA id r5sm3284596wjq.26.2014.05.23.03.08.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 May 2014 03:08:03 -0700 (PDT) In-Reply-To: <6EAF5FDE-7BE4-4766-B683-FA9994227A04@indiana.edu> X-Mailer: Apple Mail (2.1878.2) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c03::233; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WM5m84yc - 604d0c349c56 - 20140523 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:87515 Archived-At: Hi, Some time ago Wolfgang S. gave a solution to a similar problem: maybe this = can help you. %%%% begin \def\somemacro#1% {\def\dosomemacro##1{Execute ##1, }% \processcommalist[#1]\dosomemacro} \starttext \somemacro{A,B,C} \somemacro{E,F} \stoptext %%%% end Best regards: OK On 23 May 2014, at 11:54, Matthias Weber wrote: > Dear All, > = > I would like to define a command that expands = > = > \vector{2,4} % or vector[2,4] if that=92s easier > = > to > = > \startpmatrix > \NC 2 \NR > \NC 4 \NR > \stoppmatrix > = > and more generally > = > \vector{2,4,1,7} > = > to > = > \startpmatrix > \NC 2 \NR > \NC 4 \NR > \NC 1 \NR > \NC 7 \NR > \stoppmatrix > = > Any hints how to achieve this? > = > Thanks, > = > Matthias > _________________________________________________________________________= __________ > 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________