[NTG-context] Math in metapost

2011-11-30 Thread Hans van der Meer
I would like to put some math in metapost pictures. For the moment I am using textext for the typesetting in my metapost macro: pic := textext(\setbox0=\hbox{\color[textcolor]labeltext}\dp0=0pt\box0); picture pic will be placed in the metapost figure. Simple math like $p=2$ works fine, but the

Re: [NTG-context] Math in metapost

2011-11-30 Thread Otared Kavian
Hi, I am not a specialist, but I use the « btex etex » commands, such as dotlabel.bot (btex \switchtobodyfont[10pt] \strut $R$ etex, z1) I just tested with the latest beta, and everything works fine, but not the \pmatrix construct (I tried also with ${k}\choose{n}$, which works fine

Re: [NTG-context] Math in metapost

2011-11-30 Thread Hans Hagen
On 30-11-2011 20:59, Hans van der Meer wrote: I would like to put some math in metapost pictures. For the moment I am using textext for the typesetting in my metapost macro: pic := textext(\setbox0=\hbox{\color[textcolor]labeltext}\dp0=0pt\box0); picture pic will be placed in the metapost