ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Simple command with variable number of arguments
@ 2014-05-23  9:54 Matthias Weber
  2014-05-23 10:08 ` Otared Kavian
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Matthias Weber @ 2014-05-23  9:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 354 bytes --]

Dear All,

I would like to define a command that expands 

\vector{2,4} % or vector[2,4] if that’s 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

[-- Attachment #1.2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 842 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread
[parent not found: <mailman.56.1400848757.2240.ntg-context@ntg.nl>]

end of thread, other threads:[~2014-05-24  6:55 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-23  9:54 Simple command with variable number of arguments Matthias Weber
2014-05-23 10:08 ` Otared Kavian
2014-05-23 10:55   ` Matthias Weber
2014-05-23 10:56 ` Aditya Mahajan
2014-05-23 11:14   ` Matthias Weber
2014-05-23 11:37     ` Aditya Mahajan
2014-05-23 12:08       ` Matthias Weber
2014-05-23 11:44 ` luigi scarso
2014-05-23 12:12   ` Matthias Weber
     [not found] <mailman.56.1400848757.2240.ntg-context@ntg.nl>
2014-05-23 13:48 ` Jeong Dal
2014-05-23 18:00   ` Hans Hagen
     [not found]   ` <537FA66D.3000608@wxs.nl>
2014-05-24  0:36     ` Jeong Dal
2014-05-24  6:55     ` Jeong Dal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).