[metapost] format.mp and mptopdf
Jens-Uwe Morawski
s5d5 at gmx.net
Sat Mar 12 19:11:33 CET 2005
Am Samstag, den 12.03.2005, 16:12 +0100 schrieb Taco Hoekwater:
> > PS: Shouldn't the output of the example below show a dot? Adding
> > 'withpen pencircle scaled 2bp' does so.
>
> So does using drawdot instead of draw, or a 'pickup pen' command
> before the draw. You are essentially drawin a one-node path without
> a pen, so nothing is output (well, officially, one device pixel should
> be drawn if you would have used a PostSCript interpreter, but that
> is nearly invisible). There is no default pen in MetaPost.
hmm, last 3 lines of plain.mp:
newinternal defaultpen;
pickup pencircle scaled .5bp; % set default line width
defaultpen := savepen;
even a
draw origin withpen pencircle scaled .5pt
does not generate any visible output in gv or acroread (via mptopdf)
but the following with k>1 shows a dot:
beginfig(1);
k:=1.1 ;
draw origin ;
setbounds currentpicture to (-k,k)--(k,k)--(k,-k)--(-k,-k)--cycle ;
endfig;
end
j.
More information about the metapost
mailing list