From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36417 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: Margins around figures Date: Sat, 8 Sep 2007 11:14:30 +0200 Message-ID: <6faad9f00709080214x3de0babfiad7546da0dc607db@mail.gmail.com> References: <20070907041639.GA26244@localhost> <20070907082341.GB6992@localhost> 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 1189242916 17300 80.91.229.12 (8 Sep 2007 09:15:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 8 Sep 2007 09:15:16 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 08 11:15: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 1ITwPH-0000g3-Rb for gctc-ntg-context-518@m.gmane.org; Sat, 08 Sep 2007 11:15:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4819920092; Sat, 8 Sep 2007 11:15:09 +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 05132-01; Sat, 8 Sep 2007 11:14:43 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1E83A200AA; Sat, 8 Sep 2007 11:14:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DCA6E200AA for ; Sat, 8 Sep 2007 11:14:38 +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 04831-01-2 for ; Sat, 8 Sep 2007 11:14:32 +0200 (CEST) Original-Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.179]) by ronja.ntg.nl (Postfix) with ESMTP id E5EB220092 for ; Sat, 8 Sep 2007 11:14:31 +0200 (CEST) Original-Received: by wa-out-1112.google.com with SMTP id m16so923899waf for ; Sat, 08 Sep 2007 02:14:30 -0700 (PDT) Original-Received: by 10.142.139.6 with SMTP id m6mr130367wfd.1189242870337; Sat, 08 Sep 2007 02:14:30 -0700 (PDT) Original-Received: by 10.143.44.6 with HTTP; Sat, 8 Sep 2007 02:14:30 -0700 (PDT) In-Reply-To: <20070907082341.GB6992@localhost> 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:36417 Archived-At: On 9/7/07, Kumar Appaiah wrote: > On Fri, Sep 07, 2007 at 09:18:30AM +0200, Oliver Buerschaper wrote: > > Perhaps > > > > setbounds currentpicture to boundingbox currentpicture enlarged 5mm; > > > > at the end of your MetaPost drawing might do what you want? > > That's probably in the right direction, but the MetaPost newbie I am, > I am unable to figure out the error: > > 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; > > ? > > What error could this be? The line I added is: > setbounds currentpicture to boundingbox currentpicture enlarged 1cm; Since plain metapost doesn't know about ConTeXt (metafun) extentions, you need to: - either add a line "input metafun ;" at the top of your metapost files - or run "mptopdf seminar.mp" which will run metapost+create PDF instead of running "mpost/mp seminar.mp" first and convert to PDF later When including a picture in ConTeXt, one options could also be to use: \framed[frame=off,offset=1cm,strut=no,background=color,backgroundcolor=white]% {\externalfigure[...]} But that's slightly long and tedious, unless you write your own macro wrapper around it. Mojca ___________________________________________________________________________________ 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 ___________________________________________________________________________________