From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36403 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Margins around figures Date: Fri, 7 Sep 2007 12:31:26 +0200 Message-ID: <115224fb0709070331t4ea4781fq7c84e382cd6e3a8f@mail.gmail.com> References: <20070907041639.GA26244@localhost> <20070907082341.GB6992@localhost> <5A9A2FF6-9210-4EB6-B4CE-57DF59030A3C@mpq.mpg.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1189161118 20606 80.91.229.12 (7 Sep 2007 10:31:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2007 10:31:58 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 07 12:31:56 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1ITb80-0000ri-8l for gctc-ntg-context-518@m.gmane.org; Fri, 07 Sep 2007 12:31:56 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E91E22018D; Fri, 7 Sep 2007 12:31:53 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23654-05; Fri, 7 Sep 2007 12:31:43 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3663C201E7; Fri, 7 Sep 2007 12:31:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 95CEE201E7 for ; Fri, 7 Sep 2007 12:31:40 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23653-09 for ; Fri, 7 Sep 2007 12:31:28 +0200 (CEST) Original-Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by ronja.ntg.nl (Postfix) with ESMTP id C7D342018D for ; Fri, 7 Sep 2007 12:31:27 +0200 (CEST) Original-Received: by wx-out-0506.google.com with SMTP id i27so469648wxd for ; Fri, 07 Sep 2007 03:31:26 -0700 (PDT) Original-Received: by 10.90.118.12 with SMTP id q12mr3361915agc.1189161086174; Fri, 07 Sep 2007 03:31:26 -0700 (PDT) Original-Received: by 10.90.35.1 with HTTP; Fri, 7 Sep 2007 03:31:26 -0700 (PDT) In-Reply-To: <5A9A2FF6-9210-4EB6-B4CE-57DF59030A3C@mpq.mpg.de> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:36403 Archived-At: 2007/9/7, Oliver Buerschaper : > > 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'. > > > > ; > > 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 ___________________________________________________________________________________