>
> label(decimal(n),origin);
>
Sorry. I found the answer by wrapping the decimal() inside textext().
That is,
label(textext(decimal(n)),origin);
does what I want.
Troy
___
If your question is of interest to others
That works great too. One more question now. I would like a particular
MetaPost label to contain the value of a variable, say n. I don't want to
use
label(decimal(n),origin);
because I want the label to be a TeX picture instead of a string. That is,
I would like to have
label(btex n etex,ori
That works great. Now I have defined a global numeric
N:=8;
in \startMPinclusions ... \stopMPinclusions at the be beginning of my
document. All of my \startMPpage ... \stopMPpage environments understand
this N, but how do I reference this value as the start value for
\dostepwiserecurse? That
That works great. Now I have defined a global numeric
N:=8;
in \startMPinclusions ... \stopMPinclusions at the be beginning of my
document. All of my \startMPpage ... \stopMPpage environments understand
this N, but how do I reference this value as the start value for
\dostepwiserecurse? That i
On Sun, 9 Sep 2012, Troy Henderson wrote:
When I create animations using MetaPost, I typically do something like
for n=1 upto N:
beginfig(n);
endfig;
endfor;
and a sequence of figures are created. How can I do this in ConTeXt using
\startMPpage ... \stopMPpage?
(untested)
\dorecu
When I create animations using MetaPost, I typically do something like
for n=1 upto N:
beginfig(n);
endfig;
endfor;
and a sequence of figures are created. How can I do this in ConTeXt using
\startMPpage ... \stopMPpage?
Troy Henderson
___