[NTG-context] writing a label with a subscript in MetaFun.

Jeong Dalyoung haksan at me.com
Wed Apr 20 04:03:29 CEST 2011


Dear all,

I'd like to write a label with a subscript in MetaFun where the subscript is a variable.

I tried in several way but not succeed. The best which I made is

for i= 0 upto 8:
label( "z" & decimal i, z[i]);
endfor;

So the output is z1, z2, z3, ...
And, the following commands are not working.

label(btex z_i etex, z[i]);  no error but the value of i is not listed. 
label(btex z_\MPvar{i} etex, z[i]);  error
 
Is there a good way to do that?

Thank you for reading.

Best regards,

Dalyoung



More information about the ntg-context mailing list