* MetaPost visibly drawing at 0pt
@ 2011-09-19 12:31 Meer, H. van der
2011-09-19 13:44 ` Peter Rolf
0 siblings, 1 reply; 2+ messages in thread
From: Meer, H. van der @ 2011-09-19 12:31 UTC (permalink / raw)
To: NTG ConTeXt
I used to put an invisible frame around figures in MetaPost by setting a pen scaled at 0pt. That left no trace, but defined the area.
However I (now) see a thin line drawn by code:
pickup pencircle scaled 0pt;
draw origin--(w,h);
Did I always mis this or has something changed? For example a roundoff away from zero in MetaPost?
By the way I am typesetting through ConTeXT with \startMPpage … \stopMPpage.
Hans van der Meer
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: MetaPost visibly drawing at 0pt
2011-09-19 12:31 MetaPost visibly drawing at 0pt Meer, H. van der
@ 2011-09-19 13:44 ` Peter Rolf
0 siblings, 0 replies; 2+ messages in thread
From: Peter Rolf @ 2011-09-19 13:44 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 19.09.2011 14:31, schrieb Meer, H. van der:
> I used to put an invisible frame around figures in MetaPost by setting a pen scaled at 0pt. That left no trace, but defined the area.
> However I (now) see a thin line drawn by code:
>
> pickup pencircle scaled 0pt;
> draw origin--(w,h);
>
> Did I always mis this or has something changed? For example a roundoff away from zero in MetaPost?
> By the way I am typesetting through ConTeXT with \startMPpage … \stopMPpage.
>
Donno (as I never used this method). Better use
'setbounds currentpicture to' ..
.. 'unitsquare xyscaled(w,h);'
.. 'OverlayBox;'
.. <whatever is squared>;
at the end of your graphic. This simply sets the bounding box of you
graphic and has no unwanted side effects.
> Hans van der Meer
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-19 13:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-19 12:31 MetaPost visibly drawing at 0pt Meer, H. van der
2011-09-19 13:44 ` Peter Rolf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).