![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Aditya Mahajan wrote:
Hi,
How can I replace the following textext code to use sometxt?
\startMPpage numeric u ; u := 1cm ; for i = 0 upto 5: dotlabel.bot(textext("$X_{" & decimal(i+1) & "}"), (i*u,0)); endfor ; \stopMPpage
you cannot, since \sometxt is expanded this is what textext is about, collect stuff in loops and so
Also is sometxt supposed to be a replacement for textext in the long run?
actually, this is what started the processo fcooking up a variant; i have been playing with (a still very alpha version) of luatex and piping the mp graphics into a pending mp session; this means that one can gets mp support in context with only 1 (sic) mp run. Although taco, fabrice and I got it kind of working we're still breeding on better things than pipes since there are tricky sync problems involved. So, maybe next year ... (well, the demo was impressive: run time graphics nearly as fast as with an intermediate mp run) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------