From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30936 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: trouble with \startMPinclusions[+] Date: Fri, 22 Sep 2006 23:15:14 -0400 Message-ID: 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 1158981350 2491 80.91.229.2 (23 Sep 2006 03:15:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 23 Sep 2006 03:15:50 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 23 05:15:44 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 1GQxzK-0004YZ-Hp for gctc-ntg-context-518@m.gmane.org; Sat, 23 Sep 2006 05:15:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F02AB1FE3D; Sat, 23 Sep 2006 05:15: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 18418-06; Sat, 23 Sep 2006 05:15:26 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 554331FDFB; Sat, 23 Sep 2006 05:15:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5806E1FDFB for ; Sat, 23 Sep 2006 05:15:24 +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 18421-06 for ; Sat, 23 Sep 2006 05:15:22 +0200 (CEST) Original-Received: from elasmtp-kukur.atl.sa.earthlink.net (elasmtp-kukur.atl.sa.earthlink.net [209.86.89.65]) by ronja.ntg.nl (Postfix) with SMTP id 08ED21FDE2 for ; Sat, 23 Sep 2006 05:15:21 +0200 (CEST) Original-Received: from [24.41.6.91] (helo=approximate.corpus.cam.ac.uk) by elasmtp-kukur.atl.sa.earthlink.net with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34) id 1GQxz6-0004vi-9d; Fri, 22 Sep 2006 23:15:20 -0400 Original-Received: from sanjoy by approximate.corpus.cam.ac.uk with local (Exim 4.60) (envelope-from ) id 1GQxz0-0007rJ-UB; Fri, 22 Sep 2006 23:15:14 -0400 Original-To: ntg-context@ntg.nl X-Mailer: MH-E 7.85; nmh 1.1; GNU Emacs 21.4.1 X-ELNK-Trace: dcd19350f30646cc26f3bd1b5f75c9f474bf435c0eb9d47800df650746cd6c7ebde41f170c46ba7edc9cc9bac3bcb6a8350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 24.41.6.91 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:30936 Archived-At: The small test file below uses \startMPinclusions[+], but it produces "TeX capacity exceeded" from what looks like an endless loop. The error msgs are below the file. This is with context 2006.08.08 21:51, and the live ConTeXt (2006.09.17) gives the same error. [I was trying to test whether I could replicate my standalong metapost programming style within metafun. I often have: u := 1cm; % a couple figures using this u:=1cm unit size; beginfig(1) fill ... endfig; etc. % now a few figures with a different unit size u := 1.5cm; beginfig(10) fill ... endfig; ... So I wanted to see whether I could use \startMPinclusions[+] midway through the source file, in between several \start(stop)reusableMPgraphic blocks, to change u between figures. But the error msgs intervened. Anyway, here's the file. The currentcolor(def) in the error msgs makes me wonder whether it's related to the new code to make there be a fixed current color before each figure?] =================== cut here ================= \starttext \startreusableMPgraphic{a} fill fullcircle scaled 1cm; \stopreusableMPgraphic \placefigure[force,none]{}{\reuseMPgraphic{a}} hello % instead, just \startMPinclusions works (i.e. without the [+]) \startMPinclusions[+] \stopMPinclusions \startreusableMPgraphic{b} fill fullcircle scaled 1cm; \stopreusableMPgraphic \placefigure[force,none]{}{\reuseMPgraphic{b}} hello2 \stoptext =================== cut here ================= And a piece of the log: floatblocks : order disturbed floatblocks : 1 placed color : currentcolor (def) is not defined ! TeX capacity exceeded, sorry [input stack size=1500]. \theMPinclusions ->\theMPinclusions \writeMPgraphic { } \theMPinclusions ->\theMPinclusions \writeMPgraphic { } \theMPinclusions ->\theMPinclusions \writeMPgraphic { } \theMPinclusions ->\theMPinclusions \writeMPgraphic { } \theMPinclusions ->\theMPinclusions \writeMPgraphic { } \theMPinclusions ->\theMPinclusions \writeMPgraphic { } ... l.19 ...cefigure[force,none]{}{\reuseMPgraphic{b}} If you really absolutely need more capacity, you can ask a wizard to enlarge me.