`\{start, stop}MPpage`: MetaPost figure does not fit canvas(?) in resulting PDF file
Dear ConTeXt folks, using the following example \starttext \startMPpage draw (0,0)--(10,10)--(15,5)--(20,10); draw (0,0)--(0,10)--(10,10)--(10,5)--(15,5)--(15,10)--(20,10) withcolor blue; \stopMPpage \stoptext it looks like the bottom is not included in the resulting PDF file and at the top there is too much room. (So it looks like the figure is moved too far to the bottom.) Using the examples from the Wiki [1] with circles works though. I am using ConTeXt Standalone. ConTeXt ver: 2011.11.25 21:29 MKIV fmt: 2011.11.25 int: english/english Thanks, Paul [1] http://wiki.contextgarden.net/Mpgraphic
On 7-12-2011 20:36, Paul Menzel wrote:
Dear ConTeXt folks,
using the following example
\starttext \startMPpage draw (0,0)--(10,10)--(15,5)--(20,10); draw (0,0)--(0,10)--(10,10)--(10,5)--(15,5)--(15,10)--(20,10) withcolor blue; \stopMPpage \stoptext
it looks like the bottom is not included in the resulting PDF file and at the top there is too much room. (So it looks like the figure is moved too far to the bottom.)
Using the examples from the Wiki [1] with circles works though.
it has to do with the size and topskip interference .. somewhat bigger images work ok (hopefully fixed in next beta) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Paul Menzel