On 30-11-2011 21:32, Martin Bruchanov wrote:
Hello,
what is the proper way of using MetaPost with TeX text? I have two examples:
beginfig(1); draw unitsquare scaled(1cm); draw textext("$\pi$") shifted((0.5,0.5)*cm); % label(btex $\pi$ etex, origin); endfig; end
Easiest is: fig-1.tex: \startMPpage draw unitsquare scaled(1cm); draw textext("$\pi$") shifted((0.5,0.5)*cm); \stopMPpage and then run: context fig-1 this will give you an independent pdf ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------