[metapost] format.mp and mptopdf

Taco Hoekwater taco at elvenkind.com
Sun Mar 13 12:07:53 CET 2005


Hi Hens-Uwe,

Jens-Uwe Morawski wrote:
> 
> hmm, last 3 lines of plain.mp:
> newinternal defaultpen;
> pickup pencircle scaled .5bp;  % set default line width
> defaultpen := savepen;

I was wrong, apparently there is a default pen in plain.mp.
(I really should test this stuff before posting, sorry).

So .. I finally ran your example, and metapost *does* create
a dot (at least 0.641 does). For reference, here is the output
I get from

   beginfig(1);
     draw origin;
   endfig;
   end

Output file:

   %!PS
   %%BoundingBox: -1 -1 1 1
   %%Creator: MetaPost
   %%CreationDate: 2005.03.13:1200
   %%Pages: 1
   %%EndProlog
   %%Page: 1 1
    0 0.5 dtransform truncate idtransform setlinewidth pop [] 0 setdash
    1 setlinecap 1 setlinejoin 10 setmiterlimit
   newpath 0 0 moveto 0 0 rlineto stroke
   showpage
   %%EOF

And sure enough, for me, this draws something in the lower-left
corner of the page in ghostscript. It is much better visible if
you add a move:

   beginfig(1);
     draw origin shifted (1,1);
   endfig;
   end

So perhaps the problem is the fact that three-quarters of the drawn dot
is outside of the page (thereby confusing the postscript interpreter)?

Greetings, Taco



More information about the metapost mailing list