[dev-context] sometxt vs textext

Hans Hagen pragma at wxs.nl
Sun Jun 25 19:00:30 CEST 2006


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




More information about the dev-context mailing list