From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73120 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: Lua and module gnuplot: Manipulate Gnuplot script with Lua Date: Mon, 12 Dec 2011 23:13:41 +0100 Message-ID: References: <1323725964.26949.90.camel@mattotaupa> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1323728046 1531 80.91.229.12 (12 Dec 2011 22:14:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Dec 2011 22:14:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 12 23:13:59 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RaE8F-0007A0-1T for gctc-ntg-context-518@m.gmane.org; Mon, 12 Dec 2011 23:13:59 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 21737CB169; Mon, 12 Dec 2011 23:13:58 +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 ylKkI7vVMtwa; Mon, 12 Dec 2011 23:13:55 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E97FBCB163; Mon, 12 Dec 2011 23:13:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C292DCB163 for ; Mon, 12 Dec 2011 23:13:53 +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 pzWcjrx3+Vfi for ; Mon, 12 Dec 2011 23:13:43 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 00CE6CABBD for ; Mon, 12 Dec 2011 23:13:42 +0100 (CET) Original-Received: from mail-yx0-f169.google.com (mail-yx0-f169.google.com [209.85.213.169]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pBCMDf97018197 for ; Mon, 12 Dec 2011 23:13:42 +0100 Original-Received: by yenq10 with SMTP id q10so5729274yen.14 for ; Mon, 12 Dec 2011 14:13:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=sysY7+ydLDTNQNJ7MLWEY1yhGPrLOSAgjcvr0yQ205M=; b=DLcCB07P7Oq+nIqKCyuxV7W4gO22yXfN9wpftLqBkRoT69EvHTzXpmwNoLYOJ2KXV2 YPDn/wEhIEkyGkGxpPYKonuC1i3s5D9rOq2I1QxAJPGWamdS46EhFOSe4MK/NzLMXGEj RH781VuohlR/Ly1VlnkaaAkiDm45OeUw0tl2Q= Original-Received: by 10.236.131.4 with SMTP id l4mr28988495yhi.79.1323728021414; Mon, 12 Dec 2011 14:13:41 -0800 (PST) Original-Received: by 10.101.55.9 with HTTP; Mon, 12 Dec 2011 14:13:41 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.213.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bG8mdFQU - cc1dd5d13c54 - 20111212 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:73120 Archived-At: On Mon, Dec 12, 2011 at 23:07, Mojca Miklavec wrote: > > However, \startGNUPLOTinclusions is parsed and you could in theory > misuse that, but it would be very bad coding practice. (Wait, I'm not sure about that. I think that I fixed that for the same reason, but I need to check.) Either way the moral of the story is still the same: context parsing is very very very confusing and you don't want to go there. In particular you never know if something should be parsed and executed before or after gnuplot processing. One more example. One thing that would most probably work (I didn't try it) would be the following: \startGNUPLOTscript[name] plot sin(x) t '$\pi = \ctxlua{math.pi()}$' \stopGNUPLOTscript How can you explain to ConTeXt whether lua command has to be executed before or after gnuplot does its job? (label width will be wrong in either case, but that's not the point) Mojca ___________________________________________________________________________________ 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 ___________________________________________________________________________________