[dev-context] sometxt vs textext

Mojca Miklavec mojca.miklavec.lists at gmail.com
Sat Jun 24 00:49:40 CEST 2006

On 6/23/06, 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

I don't know if there's any shortcut to it (textext seems to be easier
to write in your case), but according to Hans's examples:


      numeric u ; u := 1cm ;
      for i = 0 upto 5:
         dotlabel.bot(sometxt(i+1), (i*u,0));
      endfor ;

>   Also is sometxt supposed to be a replacement for textext in the long run?

Left to Hans to answer ...

I would say that textext won't disapper, but in the current
implementation \sometxt might be ten times faster for lots of tables.
Btw: try to use some complex math or double quotes inside textext.


More information about the dev-context mailing list