[metapost] (newbie) macro with a sequence of pairs
luigi.scarso at gmail.com
Tue Dec 15 10:51:35 CET 2009
On Tue, Dec 15, 2009 at 9:03 AM, Taco Hoekwater <taco at elvenkind.com> wrote:
> luigi scarso wrote:
>> I'm pretty new about metapost programming
>> and I need to write a "polyline" macro
>> that take a with a "sequence of pairs" like
>> (0,0) (10,10) (30,10)
>> and draw a line
>> polyline (0,0) (10,10) (30,10)
>> draw (0,0)--(10,10)--(30,30)
>> Is it possible ?
> Not without a lot of trickery, I think. Why do you
> not want to use
> polyline (0,0)--(10,10)--(30,30);
I can't .
Some one suggests me to look into string.mp,
macro loptok .
(given that I'm on luatex,
it's not a big problem to write a macro; but I would like to know if
it's doable only in mpost).
More information about the metapost