From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87514 Path: news.gmane.org!not-for-mail From: Matthias Weber Newsgroups: gmane.comp.tex.context Subject: Simple command with variable number of arguments Date: Fri, 23 May 2014 05:54:35 -0400 Message-ID: <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.2 \(1874\)) Content-Type: multipart/mixed; boundary="===============1888003581==" X-Trace: ger.gmane.org 1400838920 14855 80.91.229.3 (23 May 2014 09:55:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 May 2014 09:55:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri May 23 11:55:15 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 1WnmBz-0007oT-1H for gctc-ntg-context-518@m.gmane.org; Fri, 23 May 2014 11:55:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 46F6510240 for ; Fri, 23 May 2014 11:55:10 +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 cHyviKKzxDOh for ; Fri, 23 May 2014 11:55:10 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id CD90A101FD for ; Fri, 23 May 2014 11:55:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7DA19101EE for ; Fri, 23 May 2014 11:55:01 +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 bVa8s+7H0sEU for ; Fri, 23 May 2014 11:54:50 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 13E17101EC for ; Fri, 23 May 2014 11:54:41 +0200 (CEST) Original-Received: from hartman.uits.indiana.edu (belushi.uits.indiana.edu [129.79.1.188]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s4N9sd2g022896 for ; Fri, 23 May 2014 11:54:40 +0200 X-IronPort-AV: E=Sophos;i="4.98,892,1392181200"; d="asc'?scan'208";a="141179735" Original-Received: from mssg-relay.indiana.edu ([129.79.1.73]) by irpt-internal-relay.indiana.edu with ESMTP; 23 May 2014 05:54:38 -0400 Original-Received: from hartman.uits.indiana.edu (hartman.uits.indiana.edu [129.79.1.194]) by mssg-relay.indiana.edu (8.14.7/8.14.4/IU Messaging Team) with ESMTP id s4N9sYwN007267 for ; Fri, 23 May 2014 05:54:38 -0400 X-IronPort-AV: E=Sophos;i="4.98,892,1392181200"; d="asc'?scan'208";a="140927173" Original-Received: from candy.uits.indiana.edu (HELO mail-relay.iu.edu) ([129.79.1.201]) by irpt-internal-relay.indiana.edu with ESMTP; 23 May 2014 05:54:38 -0400 Original-Received: from [172.27.35.85] (c-98-223-200-195.hsd1.in.comcast.net [98.223.200.195]) (authenticated bits=0) by mail-relay.iu.edu (8.14.7/8.14.4/IU Messaging Team) with ESMTP id s4N9sbJB028205 for ; Fri, 23 May 2014 05:54:37 -0400 X-Mailer: Apple Mail (2.1874) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=129.79.1.188; country=US; region=Indiana; city=Bloomington; latitude=39.1653; longitude=-86.5264; http://maps.google.com/maps?q=39.1653,-86.5264&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03M5lSEe3 - 4889d45857c0 - 20140523 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:87514 Archived-At: --===============1888003581== Content-Type: multipart/signed; boundary="Apple-Mail=_60490248-D317-4E56-B86E-CC636B410698"; protocol="application/pgp-signature"; micalg=pgp-sha512 --Apple-Mail=_60490248-D317-4E56-B86E-CC636B410698 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Dear All, I would like to define a command that expands=20 \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 --Apple-Mail=_60490248-D317-4E56-B86E-CC636B410698 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJTfxrcAAoJELjBb0GFETax5W0P/0ceD9pFK9Fp3BLaluMbiRZk 50EQ00BMsFlj1xt5LHFag7fJl8GTayN3QxT2Y07VnEKVn73DU8l7BzWCNLhqe/fu 7xYFQ2ptu3BiXwy+ULhVOupg2kqrHRLunV1/3zPAwIJnAgm4rVv1UZ2zTYrvWVVO vTa8Fsd4gVQI+yIfi/fm3aa9hpqAr2djdb5i2W1fy/3EIOarFwpn3dRatocubLKm NHAXZuMj239saqYZ+BM9fcsHqkYttRcKifTSxNIylNQtHtzWat9OcQiQlCrZLxrz 9or4eF1Wmo55ZjGIs6yUB0AFoG2DQ0owfh2olwEQXLJUSVsaVBm9on/5BI58t2S/ PhNFXleL3aWV7oCobIqOauPcLBiwEgkHYiFlX9S1NWd63NlZTXGjSiF+3fKJdysg ywffRanVSAHpVlRNqYUOXeUPhVQFj0QVisIFbVVKvApkJ5tkEyAhSKUtdbJAUByq LgdI9DvARdHsdv66xwkDCDuN+eKISZkFNkmHdT6YAKnoY87LWCSp7oaQ1AQdd42d d7hmKiWHsrOTQhR3zGJTtb0iv1H9tDD5hjANVeAo5ZiG+KkizmNvyBxuvm40aPhq arX60TwSkLatmcv46fOJrWN5HzHLCvg6p2xbTBP8Yan8jurXwYp89FqC23fJ30MU hjol5RhjG6yhFBb+VPqP =To3g -----END PGP SIGNATURE----- --Apple-Mail=_60490248-D317-4E56-B86E-CC636B410698-- --===============1888003581== 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 ___________________________________________________________________________________ --===============1888003581==--