From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36402 Path: news.gmane.org!not-for-mail From: Oliver Buerschaper Newsgroups: gmane.comp.tex.context Subject: Re: Margins around figures Date: Fri, 7 Sep 2007 11:27:46 +0200 Message-ID: <5A9A2FF6-9210-4EB6-B4CE-57DF59030A3C@mpq.mpg.de> References: <20070907041639.GA26244@localhost> <20070907082341.GB6992@localhost> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1189157292 8619 80.91.229.12 (7 Sep 2007 09:28:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2007 09:28:12 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 07 11:28:12 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 1ITa8G-0002N3-45 for gctc-ntg-context-518@m.gmane.org; Fri, 07 Sep 2007 11:28:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4B9782015F; Fri, 7 Sep 2007 11:28:06 +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 19721-02-8; Fri, 7 Sep 2007 11:27:55 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5038B20156; Fri, 7 Sep 2007 11:27:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8508620151 for ; Fri, 7 Sep 2007 11:27: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 19721-02-7 for ; Fri, 7 Sep 2007 11:27:48 +0200 (CEST) Original-Received: from post.rzg.mpg.de (post.rzg.mpg.de [130.183.7.21]) by ronja.ntg.nl (Postfix) with ESMTP id B99B020156 for ; Fri, 7 Sep 2007 11:27:48 +0200 (CEST) Original-Received: from [172.20.3.3] (gateway.maximilianeum.mhn.de [129.187.19.245]) by post.rzg.mpg.de (8.9.2/8.9.2) with ESMTP id LAA4718796 for ; Fri, 7 Sep 2007 11:27:47 +0200 X-Envelope-To: X-Copfilter: Client is part of local network X-Copfilter: Sender is in whitelist, skipped SpamAssassin In-Reply-To: <20070907082341.GB6992@localhost> X-Mailer: Apple Mail (2.752.2) X-Copfilter-Originating-IP: 172.20.3.3 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:36402 Archived-At: > 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 --- 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 ___________________________________________________________________________________