ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: writing a label with a subscript in MetaFun.
@ 2011-04-20 11:30 Jeong Dalyoung
  0 siblings, 0 replies; 4+ messages in thread
From: Jeong Dalyoung @ 2011-04-20 11:30 UTC (permalink / raw)
  To: ntg-context

Dear Zhichu and Aditya,

Thank you for the solution.

label (textext("$z_{" & decimal (i) & "}$" ), z[i]) ;

is working well.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: writing a label with a subscript in MetaFun.
  2011-04-20  2:03 ` Jeong Dalyoung
  2011-04-20  2:21   ` Zhichu Chen
@ 2011-04-20  3:39   ` Aditya Mahajan
  1 sibling, 0 replies; 4+ messages in thread
From: Aditya Mahajan @ 2011-04-20  3:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: writing a label with a subscript in MetaFun.
  2011-04-20  2:03 ` Jeong Dalyoung
@ 2011-04-20  2:21   ` Zhichu Chen
  2011-04-20  3:39   ` Aditya Mahajan
  1 sibling, 0 replies; 4+ messages in thread
From: Zhichu Chen @ 2011-04-20  2:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1210 bytes --]

try

label (textext("$z_{" & decimal (i) & "}$" ), z[i]) ;

On Wed, Apr 20, 2011 at 10:03 AM, Jeong Dalyoung <haksan@me.com> 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;
>
> 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

[-- Attachment #1.2: Type: text/html, Size: 2002 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* writing a label with a subscript in MetaFun.
       [not found] <mailman.318.1303246561.4231.ntg-context@ntg.nl>
@ 2011-04-20  2:03 ` Jeong Dalyoung
  2011-04-20  2:21   ` Zhichu Chen
  2011-04-20  3:39   ` Aditya Mahajan
  0 siblings, 2 replies; 4+ messages in thread
From: Jeong Dalyoung @ 2011-04-20  2:03 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-04-20 11:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-20 11:30 writing a label with a subscript in MetaFun Jeong Dalyoung
     [not found] <mailman.318.1303246561.4231.ntg-context@ntg.nl>
2011-04-20  2:03 ` Jeong Dalyoung
2011-04-20  2:21   ` Zhichu Chen
2011-04-20  3:39   ` Aditya Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).