[NTG-context] metafun problem

2010-07-13 Thread Albrecht Kauffmann
Dear ConTeXtuals, the following MP-inclusion produces fatal error (! TeX capacity exceeded, sorry [parameter stack size=6000].): starttext \startMPcode label(btex $\underbrace{a}_{b}$ etex,(0,0)); \stopMPcode \stoptext I use mkii, but the code should work. Has anyone an explanation? With many

[NTG-context] Custom metaobj object in context

2010-07-13 Thread Stefan Müller
Hi, I just tried to build my own object in metaobj but for some reason I cannot figure out it does not work. I tried the example from the metaobj manual in a tex document (it works in a metapost file): \startuseMPgraphic{objecttest} vardef newsegm...@#= assignObj(@#,Segment);

Re: [NTG-context] Custom metaobj object in context

2010-07-13 Thread Hans Hagen
On 13-7-2010 6:01, Stefan Müller wrote: Hi, I just tried to build my own object in metaobj but for some reason I cannot figure out it does not work. I tried the example from the metaobj manual in a tex document (it works in a metapost file): \startuseMPgraphic{objecttest} vardef newsegm...@#=

[NTG-context] change numeral to string in Metafun

2010-07-13 Thread dalyoung
Dear all, I'd like to draw boxes with a label in a certain rule. I define drawbox macro for it. It receives 3 numbers, (the height of box, x position, y position). I'd like to label the height of the box in the middle of the box. I tired label( h ,(3s*u+u, t*u + h*u/2)); %h is a received

Re: [NTG-context] change numeral to string in Metafun

2010-07-13 Thread Wolfgang Schuster
Am 14.07.10 02:19, schrieb dalyoung: Dear all, I'd like to draw boxes with a label in a certain rule. [...] So, I'd like to know how to put received numeral(the height of the box) as a label. Or, how to change the value of a variable to a string. [...] label(1,(3s*u+u, t*u + h*u/2));