ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
Subject: mp to pdf inline conversion adds whitespace (2006.09.26 beta)
Date: Tue, 26 Sep 2006 14:31:40 -0400	[thread overview]
Message-ID: <E1GSHiW-00014y-Oa@approximate.corpus.cam.ac.uk> (raw)

I'm using the 2006.09.26 beta, and noticed an extra gap before some
external metapost figures.  Here is a small test:

============================ test.mp =================
beginfig(1)
  draw fullcircle scaled (0.75in) xscaled 1.5;
endfig;
end
======================================================

With this test file, there is a whitespace of about 1cm between the
first hairline and the ellipse:
=================== test.tex (has 1cm gap) ===========
\starttext
\hrule
\placefigure[force,none]{}{\externalfigure[test.1]}
\hrule
\stoptext
======================================================

If I convert test.1 to test-1.pdf and include that, all is fine:
=================== test.tex (works) =================
\starttext
\hrule
\placefigure[force,none]{}{\externalfigure[test-1.pdf]}
\hrule
\stoptext
======================================================

If test.mp draws a square or rectangle instead of an ellipse, then
there's no difference (both versions of test.tex work).

-Sanjoy

`A society of sheep must in time beget a government of wolves.'
   -- Bertrand de Jouvenal

             reply	other threads:[~2006-09-26 18:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-26 18:31 Sanjoy Mahajan [this message]
2006-09-26 19:44 ` Hans Hagen
2006-09-26 20:05   ` Hans Hagen
2006-09-26 19:45 ` Hans Hagen
2006-09-27  4:31   ` Sanjoy Mahajan
2006-09-27  8:05     ` Hans Hagen
2006-09-26 20:04 ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1GSHiW-00014y-Oa@approximate.corpus.cam.ac.uk \
    --to=sanjoy@mrao.cam.ac.uk \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).