From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25153 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: MPgraphic question Date: Fri, 13 Jan 2006 23:02:32 +0100 Message-ID: <43C82378.8050607@wxs.nl> References: <28ECC2C5-5314-436F-AB60-8F43BDD84E12@science.uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1137189779 26967 80.91.229.2 (13 Jan 2006 22:02:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 13 Jan 2006 22:02:59 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 13 23:02:56 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1ExX0M-0007DW-Ik for gctc-ntg-context-518@m.gmane.org; Fri, 13 Jan 2006 23:02:42 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CC26F12801; Fri, 13 Jan 2006 23:02:41 +0100 (CET) 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 06545-08-3; Fri, 13 Jan 2006 23:02:39 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BDE1F127DC; Fri, 13 Jan 2006 23:02:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 716F2127DC for ; Fri, 13 Jan 2006 23:02:38 +0100 (CET) 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 06545-08-2 for ; Fri, 13 Jan 2006 23:02:37 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by ronja.ntg.nl (Postfix) with SMTP id 7ACE7127C2 for ; Fri, 13 Jan 2006 23:02:35 +0100 (CET) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 528 for ; Fri, 13 Jan 2006 17:13:10 +0300 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <28ECC2C5-5314-436F-AB60-8F43BDD84E12@science.uva.nl> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 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-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:25153 Archived-At: Hans van der Meer wrote: > I find it difficult to see the difference -- and therefore when to > use the one or the other -- between useMPgraphic and uniqueMPgraphic. > Is there someone who will enlighten me? Because I hate not knowing > what I am doing. say that you have a background behind framed: compare: \startuseMPgraphic{test} draw OverlayBox withcolor red ; \stopuseMPgraphic{test} \setupcolor[state=start] \defineoverlay[test][\useMPgraphic{test}] \starttext \framed[background=test]{Hans} \framed[background=test]{Hans van} \framed[background=test]{Hans van der} \framed[background=test]{Hans van der Meer} \framed[background=test]{Hans} \stoptext compare: use, reuse and unique and you'll notice the differnece: use: every time (i.e. 5 mp runs) reuse: once, each framed gets the same background (some have wrong dimensions) unique: 4 runs, the last one has the same dimensions and is shared so ... unique is able to determine if it can reuse (based on configurable characteristics) Hans