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

2010-07-14 Thread Jeong Dalyoung
Dear Wolfgang, It is nicely working. Thank you for your help. best regards, Dalyoung ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://ww

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));

[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 numera