[metapost] Labels cause errors in the postscript file.
Hartmut Henkel
hartmut_henkel at gmx.de
Sun Dec 19 20:29:25 CET 2004
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. If
> I remove dotlabel statements, then there are no error messages. What
> 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
solo...
Regards, Hartmut
More information about the metapost
mailing list