From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29982 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: TeX trigger in MP macro Date: Fri, 04 Aug 2006 16:26:54 +0200 Message-ID: <44D3592E.4050305@gmx.net> References: <44D1EC33.9030203@gmx.net> <44D28032.4010902@wxs.nl> <44D32831.2060209@gmx.net> <44D32BF9.5070902@elvenkind.com> <44D32CCA.4000505@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154701653 12405 80.91.229.2 (4 Aug 2006 14:27:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 4 Aug 2006 14:27:33 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 04 16:27:30 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 1G90dl-0003OU-S3 for gctc-ntg-context-518@m.gmane.org; Fri, 04 Aug 2006 16:27:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4EADE1FFAF; Fri, 4 Aug 2006 16:27:05 +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 06025-05; Fri, 4 Aug 2006 16:26:57 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 40B091FFBB; Fri, 4 Aug 2006 16:26:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2F7AB1FFBB for ; Fri, 4 Aug 2006 16:26:54 +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 04581-04-2 for ; Fri, 4 Aug 2006 16:26:46 +0200 (CEST) Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id 57A2C1FFAF for ; Fri, 4 Aug 2006 16:26:45 +0200 (CEST) Original-Received: (qmail invoked by alias); 04 Aug 2006 14:26:45 -0000 Original-Received: from i577B88D2.versanet.de (EHLO [192.168.1.3]) [87.123.136.210] by mail.gmx.net (mp042) with SMTP; 04 Aug 2006 16:26:45 +0200 X-Authenticated: #24293357 User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) Original-To: mailing list for ConTeXt users In-Reply-To: <44D32CCA.4000505@elvenkind.com> X-Enigmail-Version: 0.94.0.0 X-Y-GMX-Trusted: 0 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:29982 Archived-At: Taco Hoekwater wrote: > Taco Hoekwater wrote: >> Hi Peter, >> >> Peter Rolf wrote: >> >>> If someone can solve this problem I would be very glad. >> >> Adding a semicolon after the 'endgroup' command removes >> the error. > > (I just looked at your pdf document). > > You probably want 'useMPgraphic' instead of 'uniqueMPgraphic'. > > Taco > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > > The following code works here, but not at context live. What have I done now? ;) Peter TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006 tex : pdfTeX, 3.141592-1.40.0-beta-20060213 (Web2C 7.5.5) context : ver: 2006.08.02 23:31 cont-en : ver: 2006.08.02 23:31 fmt: 2006.8.4 mes: en % interface=en output=pdftex % Time-stamp: % \setupcolors[state=start] \def\DbgFill{0} \startMPinclusions def dbg_fill (text p) = if (\DbgFill=0) : fill p ; fi enddef ; \stopMPinclusions \startuseMPgraphic{My_SquareA} begingroup if (\DbgFill=0) : fill OverlayBox withcolor green ; fi endgroup ; \stopuseMPgraphic \defineoverlay[MySquareA] [\useMPgraphic{My_SquareA}] \startuseMPgraphic{My_SquareB} begingroup dbg_fill(OverlayBox withcolor yellow) ; endgroup ; \stopuseMPgraphic \defineoverlay[MySquareB] [\useMPgraphic{My_SquareB}] \starttext \def\DbgFill{0} {\bf DbgFill=0:} \framed[background=MySquareA]{TestA} \framed[background=MySquareB]{TestB} \def\DbgFill{1} {\bf DbgFill=1:} \framed[background=MySquareA]{TestA} \framed[background=MySquareB]{TestB} \stoptext %%% Local Variables: %%% mode: context %%% TeX-master: "" %%% End: