From: Oliver Buerschaper <oliver.buerschaper@mpq.mpg.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Margins around figures
Date: Fri, 7 Sep 2007 11:27:46 +0200 [thread overview]
Message-ID: <5A9A2FF6-9210-4EB6-B4CE-57DF59030A3C@mpq.mpg.de> (raw)
In-Reply-To: <20070907082341.GB6992@localhost>
> mpost seminar.mp
> This is MetaPost, Version 0.993 (Web2C 7.5.6)
> (seminar.mp (/usr/share/texmf-texlive/metapost/base/TEX.mp)
> (/usr/share/texmf-texlive/metapost/base/boxes.mp)
>>> boundingbox.currentpicture.enlarged1cm
> ! Improper `clip'.
> <to be read again>
> ;
> l.26 ...o boundingbox currentpicture enlarged 1cm;
>
> ?
Oh, seems like I forgot that you wanted to run MetaPost externally.
The command "enlarged" isn't contained in standard MetaPost but only
in the extension MetaFun (i.e. MetaPost plus quite a number of
predefined MetaPost macros) that comes with ConTeXt. Therefore the
error is thrown ...
Why not try this (in ConTeXt):
---
\starttext
\startuseMPgraphic{yourPicture}
% put your MetaPost code here (without beginfig(); and endfig;)
setbounds currentpicture to boundingbox currentpicture enlarged 1cm;
\stopuseMPgraphic
\useMPgraphic{yourPicture}
\stoptext
---
Best,
Oliver
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2007-09-07 9:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-07 4:16 Kumar Appaiah
2007-09-07 7:18 ` Oliver Buerschaper
2007-09-07 8:23 ` Kumar Appaiah
2007-09-07 9:27 ` Oliver Buerschaper [this message]
2007-09-07 10:31 ` Wolfgang Schuster
2007-09-07 17:46 ` Kumar Appaiah
2007-09-07 18:08 ` Kumar Appaiah
2007-09-08 9:14 ` Mojca Miklavec
2007-09-08 11:57 ` Kumar Appaiah
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=5A9A2FF6-9210-4EB6-B4CE-57DF59030A3C@mpq.mpg.de \
--to=oliver.buerschaper@mpq.mpg.de \
--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).