From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20835 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: importing figures in metapost Date: Mon, 13 Jun 2005 19:00:09 +0200 Message-ID: <42ADBB99.3030804@gmail.com> References: <42AC59CA.3010804@gmail.com> <42ADA01B.4010604@gmail.com> <5cb206ae0906c2ecc362adec9d49c24a@di.unito.it> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1118681780 22933 80.91.229.2 (13 Jun 2005 16:56:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2005 16:56:20 +0000 (UTC) Cc: andrea valle Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 13 18:56:15 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DhsDz-0006Je-IA for gctc-ntg-context-518@m.gmane.org; Mon, 13 Jun 2005 18:55:47 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 29550127DF; Mon, 13 Jun 2005 19:00: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 21323-02-3; Mon, 13 Jun 2005 19:00:34 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 53B8D127B0; Mon, 13 Jun 2005 19:00:34 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 37061126F8 for ; Mon, 13 Jun 2005 19:00:33 +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 21323-02-2 for ; Mon, 13 Jun 2005 19:00:32 +0200 (CEST) Original-Received: from avs3.arnes.si (avs3.arnes.si [193.2.1.68]) by ronja.ntg.nl (Postfix) with ESMTP id 317ED127B0 for ; Mon, 13 Jun 2005 19:00:32 +0200 (CEST) Original-Received: from localhost (avs3.arnes.si [193.2.1.68]) by avs3.arnes.si (Postfix) with ESMTP id 9F7511D7954; Mon, 13 Jun 2005 19:00:31 +0200 (CEST) Original-Received: from avs3.arnes.si ([193.2.1.68]) by localhost (avs3.arnes.si [193.2.1.68]) (amavisd-new, port 10024) with ESMTP id 24076-09; Mon, 13 Jun 2005 19:00:31 +0200 (CEST) Original-Received: from [141.84.30.24] (b24.lmu.vpn.lrz-muenchen.de [141.84.30.24]) by avs3.arnes.si (Postfix) with ESMTP id 1D7FB1D7D68; Mon, 13 Jun 2005 19:00:10 +0200 (CEST) User-Agent: Mozilla/4.5-4.75 (Windows; U; Windows NT 5.1; sl-SI; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: sl, en, en-us, de Original-To: mailing list for ConTeXt users In-Reply-To: <5cb206ae0906c2ecc362adec9d49c24a@di.unito.it> X-Virus-Scanned: by amavisd-new at arnes.si X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:20835 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20835 andrea valle wrote: > Thanks Mojca, > (I put again the discussion on the list) > >> andrea valle wrote: > It seems to me that this: Btw: take a look at the thread "MetaFun questions" in ConTeXt archive and at the command naturalfigure(expr name) defined in mp-figs.mp. > externalfigure "mptext.pdf" > xyscaled (10cm, 8cm); > > and > > externalfigure "mptext.pdf" > xyscaled (10cm, 8cm) > shifted (3cm, 6cm); > > ...have the same results. Of course they do. Metapost is clever enough to calculate the proper bounding box. If you "draw origin" or "draw origin shifted anypointyoucanthinkof" and if that is the only thing you draw, than both figures will be identical. If you would like the figure to be different, you can set the bounding box explicitely with: setbounds currentpicture to unitsquare xyscaled ... shifted ...; If you want your graphic to appear somewhere else on the page than you have to handle that with plain TeX/ConTeXt commands to achieve the desired placing ... or using layers in MetaFun. > So, how do I know all the options I can use? Simply I can't? The command externalfigure in MetaFun has no additional options/parameters. The best place to learn metafont/post/fun is: - take The METAPOSTBook in a library (not necessary) - metapost manual: http://www.tug.org/tutorials/mp/mpman.pdf - MetaFun manual: http://www.pragma-ade.com/general/manuals/metafun-s.pdf - sources: go to http://source.contextgarden.net/ and search for externalfigure for example I usually use the metapost and metafun manual and simply the search function in Adobe Acrobat fo find what I'm looking for. Reading the whole metafun manual is no bad idea anyway. If you're looking for ConTeXt documentation: well, yes, than you start reading one manual after another, keep looking into the source code and search through the mailing list archive & contribute to Wiki. I'm affraid there's no other way for the moment. Mojca