[metapost] Labels cause errors in the postscript file.
R S Ananda Murthy
rsamurti at sancharnet.in
Mon Dec 20 13:30:15 CET 2004
On 12/20/2004 12:59:25 AM, Hartmut Henkel wrote:
> On Sun, 19 Dec 2004, R S Ananda Murthy wrote:
> > I am trying to learn MetaPost on Slackware 10 system. I tried the
> > following example:
> > beginfig(30)
> > pair A, B, C;
> > A:=(0,0); B:=(1cm,0); C:=(0,1cm);
> > draw A--B--C--cycle;
> > dotlabel.llft(btex $A$ etex, A);
> > dotlabel.lrt(btex $B$ etex, B);
> > dotlabel.top(btex $C$ etex, C);
> > endfig;
> > end;
> > I saved this in trial.mp. Then I executed mpost trial. I got the
> > output file trial.30 without any error messages. But when I try to
> > open trial.30 in gv or ggv I get several Postscript error messages.
> > I remove dotlabel statements, then there are no error messages.
> > is the problem? Please help.
> with newer TeX systems (teTeX, MikTeX) just type
> mptopdf trial.mp
> and you get trial-30.pdf, with tight bounding box. The mptopdf script
> also takes care of TeX fonts by running TeX/pdfTeX behind the scenes.
> It's part of Hans Hagen's ConTeXt package, but it works fine also
> Regards, Hartmut
It worked. Thank you very much.
More information about the metapost