From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80872 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: gnuplot module broken Date: Tue, 19 Feb 2013 10:36:44 +0100 Message-ID: <512347AC.30700@wxs.nl> References: <20130218164041.GR3733@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1361266624 28895 80.91.229.3 (19 Feb 2013 09:37:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Feb 2013 09:37:04 +0000 (UTC) Cc: Mojca Miklavec To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 19 10:37:24 2013 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 1U7jdX-0006IO-5Z for gctc-ntg-context-518@m.gmane.org; Tue, 19 Feb 2013 10:37:19 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 26858101EA; Tue, 19 Feb 2013 10:36:59 +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 EniuyOxTbiht; Tue, 19 Feb 2013 10:36:53 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A8C1F101E5; Tue, 19 Feb 2013 10:36:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CDB7E101E5 for ; Tue, 19 Feb 2013 10:36:52 +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 LHe23fP28btk for ; Tue, 19 Feb 2013 10:36:51 +0100 (CET) Original-Received: from filter2-utr.mf.surf.net (filter2-utr.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id E5E77101E3 for ; Tue, 19 Feb 2013 10:36:50 +0100 (CET) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter2-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r1J9afoY004886 for ; Tue, 19 Feb 2013 10:36:48 +0100 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by pragma-net.nl (SurgeMail 6.1c) with ESMTP (TLS) id 8013-1713362 for multiple; Tue, 19 Feb 2013 10:36:39 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.2; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04J29AFHv - 3524e881b679 - 20130219 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:80872 Archived-At: On 2/19/2013 1:37 AM, Mojca Miklavec wrote: > On Mon, Feb 18, 2013 at 5:40 PM, Marco Patzer wrote: >> Hi Mojca et al. >> >> todays beta broke the gnuplot module. This is probably due to the >> changes in the MP inclusion mechanism. >> >> \usemodule [gnuplot] >> \starttext >> \stoptext > > Here's an almost minimal example: > > \def\abc{1cm} > > \startMPextensions > a := \abc; > color b; > b := \MPcolor{currentcolor}; > \stopMPextensions > > \def\abc{3cm} > > \starttext > \startcolor[blue] > \startMPcode > fill fullcircle scaled a withcolor b; > \stopMPcode > \stopcolor > \stoptext > > The old ConTeXt draws a blue circle with diameter 3cm and the new > ConTeXt draws a black circle with diameter 1cm. Which one is right? > From a recent message by Hans: > >> - add mp functionality (immediate expansion) > > It seems that ConTeXt now parses everything inside MPextensions > earlier than it did before and I don't have the slightest idea how to > account for this in the module without a major rewrite. In case that > Hans wants to keep the new functionality, I either need [quite some] > help with the module or I'll simply stick to TeX Live 2012 for the > foreseeable future ;) For the (not texlive) module use: \defineMPinstance[gnuplot] [format=metafun, extensions=yes, initializations=yes, method=double] \startMPdefinitions[gnuplot] ... and then use the gnuplot instance. This not only isolates the code, but also gives you floats. It also means that if someone crashes the gnuplot instance, the rest still keeps running. Definitions are per instance and are delayed i.e. passed via the tex end when they get expanded. The reason for extensions being immediate (at least for now) is that it was more easy to implement as extensions meant for mp extensions and can be for all instances of specific (sets) of instances. Sorry for the changes but as we have multiple instances, scale vs double and maybe more coming it's probably worth the trouble. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________