ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Margins around figures
Date: Fri, 7 Sep 2007 12:31:26 +0200	[thread overview]
Message-ID: <115224fb0709070331t4ea4781fq7c84e382cd6e3a8f@mail.gmail.com> (raw)
In-Reply-To: <5A9A2FF6-9210-4EB6-B4CE-57DF59030A3C@mpq.mpg.de>

2007/9/7, Oliver Buerschaper <oliver.buerschaper@mpq.mpg.de>:
> > 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

He can set the offset in ConTeXt and not in MetaPost, e.g.

\offset[leftoffset=...]{\externalfigure[fugurename]}

The \offset command is described in the details manual, he can also
look at the definition in core-box.

Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2007-09-07 10:31 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
2007-09-07 10:31       ` Wolfgang Schuster [this message]
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=115224fb0709070331t4ea4781fq7c84e382cd6e3a8f@mail.gmail.com \
    --to=schuster.wolfgang@googlemail.com \
    --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).