From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79538 Path: news.gmane.org!not-for-mail From: Marco Patzer Newsgroups: gmane.comp.tex.context Subject: Re: MetaPost instance mechanism broken Date: Mon, 26 Nov 2012 17:10:07 +0100 Message-ID: <20121126171007.1ac3c68c@homerow> References: <20121125181144.72f960cb@homerow> <20121125190535.238d698a@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/GvEvPQ1FobbyzFmmeU+vLxn" X-Trace: ger.gmane.org 1353946229 7482 80.91.229.3 (26 Nov 2012 16:10:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Nov 2012 16:10:29 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 26 17:10:39 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Td1GX-0001YQ-Ci for gctc-ntg-context-518@m.gmane.org; Mon, 26 Nov 2012 17:10:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DA51A10289; Mon, 26 Nov 2012 17:10:25 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id u725eRTDYMo2; Mon, 26 Nov 2012 17:10:23 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 0C11E101F0; Mon, 26 Nov 2012 17:10:23 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5572E101F0 for ; Mon, 26 Nov 2012 17:10:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9nH6xPU247lx for ; Mon, 26 Nov 2012 17:10:20 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 018CA101EB for ; Mon, 26 Nov 2012 17:10:19 +0100 (CET) Original-Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qAQG3Ex5004470 for ; Mon, 26 Nov 2012 17:03:15 +0100 Original-Received: from c.earth.lavabit.com (c.earth.lavabit.com [192.168.111.12]) by karen.lavabit.com (Postfix) with ESMTP id 3E6B911BBC9 for ; Mon, 26 Nov 2012 10:10:10 -0600 (CST) Original-Received: from homerow (83.68.239.193) by lavabit.com with ESMTP id 5OFGADIXDKTJ for ; Mon, 26 Nov 2012 10:10:10 -0600 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=u8tw0MHS7MMwgPLfluqgUVvu6yI1ZGyjNc+gW/Kvo4Z8edD0kwE1vFGw+eDRa8SVoMiG23w4iZ244ohSXoHxH9f4vzI+TvmqJz/sXHV5hJnxcau2SKTOfqSiqEr6Ywixcemsk+UPTzRF+FMSPyXUegJX1HNXrm1W4/r7YAzAAFE=; h=Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type; In-Reply-To: X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.249.41.33; country=US; region=TX; city=Dallas; postalcode=75204; latitude=32.8019; longitude=-96.7883; metrocode=623; areacode=214; http://maps.google.com/maps?q=32.8019,-96.7883&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WIsg3eIo - 343244d6e303 - 20121126 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:79538 Archived-At: --MP_/GvEvPQ1FobbyzFmmeU+vLxn Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline 2012-11-26 Sietse Brouwer: > Since I don't use MetaPost, I don't think I'm the best person to > document this. But I took this as an opportunity to create the command > reference pages for a bunch of the \...MP... commands; perhaps one of > you could add this info to the proper page(s)? Thanks. I added some info about the change mentioned in this thread. > Also: a question about > \startuseMPgraphic and > \startuniqueMPgraphic. > Both are supposed to be recompiled at every usage, so how are they > different? Actually trying it out suggests that useMPgraphic is the > only one of the two that re-evaluates its code every time; compare the > examples at AFAIK useMPgraphic is always recalculated, reusableMPgraphic never is. uniqueMPgraphic takes the size into account and recalculates if the graphic dimensions change. If I recall correctly this is mentioned somewhere in the MetaFun manual. But I agree, all these commands for including MP graphics are confusing, given the fact that one can survive pretty well with only useMPgraphic. I attached a small example to show the difference. Marco --MP_/GvEvPQ1FobbyzFmmeU+vLxn Content-Type: text/x-tex Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=t.tex \startuseMPgraphic{alpha} fill unitsquare xyscaled (\overlaywidth, \overlayheight) withcolor (uniformdeviate 1, uniformdeviate 1, uniformdeviate 1); \stopuseMPgraphic \defineoverlay [alpha] [\useMPgraphic{alpha}] \startreusableMPgraphic{beta} fill unitsquare xyscaled (\overlaywidth, \overlayheight) withcolor (uniformdeviate 1, uniformdeviate 1, uniformdeviate 1); \stopreusableMPgraphic \defineoverlay [beta] [\reuseMPgraphic{beta}] \startuniqueMPgraphic{gamma} fill unitsquare xyscaled (\overlaywidth, \overlayheight) withcolor (uniformdeviate 1, uniformdeviate 1, uniformdeviate 1); \stopuniqueMPgraphic \defineoverlay [gamma] [\uniqueMPgraphic{gamma}] \starttext \dontleavehmode \framed[background=alpha]{foo} \framed[background=alpha]{foo} \framed[background=alpha]{foobar} \dontleavehmode \framed[background=beta]{foo} \framed[background=beta]{foo} \framed[background=beta]{foobar} \dontleavehmode \framed[background=gamma]{foo} \framed[background=gamma]{foo} \framed[background=gamma]{foobar} \stoptext --MP_/GvEvPQ1FobbyzFmmeU+vLxn Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --MP_/GvEvPQ1FobbyzFmmeU+vLxn--