From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73129 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Lua and module gnuplot: Manipulate Gnuplot script with Lua Date: Tue, 13 Dec 2011 01:45:31 -0500 (EST) Message-ID: References: <1323725964.26949.90.camel@mattotaupa> <4EE67D5F.30705@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1999407923-1323758736=:17645" X-Trace: dough.gmane.org 1323758768 9671 80.91.229.12 (13 Dec 2011 06:46:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2011 06:46:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 13 07:46:04 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 1RaM7n-0005zi-U6 for gctc-ntg-context-518@m.gmane.org; Tue, 13 Dec 2011 07:46:03 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6642DCB179; Tue, 13 Dec 2011 07:46:03 +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 Oeux0nCQOYIo; Tue, 13 Dec 2011 07:46:01 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C678CCB16C; Tue, 13 Dec 2011 07:46:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7B616CB16C for ; Tue, 13 Dec 2011 07:45: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 s3QkZonOfWWH for ; Tue, 13 Dec 2011 07:45:57 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 8CDBFCB163 for ; Tue, 13 Dec 2011 07:45:57 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pBD6jtlN017536 for ; Tue, 13 Dec 2011 07:45:56 +0100 Original-Received: FROM [10.0.2.15] (Unknown [209.49.132.2]) By tombraider.mr.itd.umich.edu ID 4EE6F49F.761C8.32027 ; Authuser adityam; 13 Dec 2011 01:45:51 EST In-Reply-To: User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05G8uJTFW - aa1828019083 - 20111213 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:73129 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1999407923-1323758736=:17645 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 12 Dec 2011, Mojca Miklavec wrote: > On Mon, Dec 12, 2011 at 23:17, Hans Hagen wrote: >> >> You have to twist your mide a bit: >> >> \startluacode >> =C2=A0local x =3D 10 >> =C2=A0context.startGNUPLOTscript{ "lua" } >> =C2=A0context("plot %s",1.2 * x + 3) >> =C2=A0context.stopGNUPLOTscript() >> \stopluacode >> >> >> \starttext >> \useGNUPLOTgraphic[lua] >> \stoptext > > Oh, I like this one! > > Not that it works at the moment, but fixing the module to make it work > is doable (which is not to say that I know how to do it). I have not looked into the internals of gnuplot in a while, but context("\\startGNUplotscript[lua]") context("plot %s", 1.2*x + 3) context("\\stopGNUplotscript") should work. Aditya --0-1999407923-1323758736=:17645 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --0-1999407923-1323758736=:17645--