writing a label with a subscript in MetaFun.
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
try
label (textext("$z_{" & decimal (i) & "}$" ), z[i]) ;
On Wed, Apr 20, 2011 at 10:03 AM, Jeong Dalyoung
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
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
-- Best Regards Chen
On Wed, 20 Apr 2011, Jeong Dalyoung wrote:
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;
Untested: label(textext("$z_{" & decimal i & "}$"), z[i]) ; Aditya
participants (3)
-
Aditya Mahajan
-
Jeong Dalyoung
-
Zhichu Chen