From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Lua and module gnuplot: Manipulate Gnuplot script with Lua
Date: Tue, 13 Dec 2011 01:45:31 -0500 (EST) [thread overview]
Message-ID: <alpine.LNX.2.02.1112130144040.17645@nqv-gnoyrg> (raw)
In-Reply-To: <CALBOmsbV0ufjZk45iAjEksf+6ci2ntBjva8gPLD0fGDpbyvSJg@mail.gmail.com>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 736 bytes --]
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
>> local x = 10
>> context.startGNUPLOTscript{ "lua" }
>> context("plot %s",1.2 * x + 3)
>> context.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
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2011-12-13 6:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-12 21:39 Paul Menzel
2011-12-12 22:07 ` Mojca Miklavec
2011-12-12 22:13 ` Mojca Miklavec
2011-12-12 22:20 ` Hans Hagen
2011-12-12 22:44 ` Paul Menzel
2011-12-12 22:35 ` Paul Menzel
2011-12-13 9:10 ` Hans Hagen
2011-12-13 6:52 ` Aditya Mahajan
2011-12-12 22:17 ` Hans Hagen
2011-12-12 22:27 ` Mojca Miklavec
2011-12-13 6:45 ` Aditya Mahajan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.02.1112130144040.17645@nqv-gnoyrg \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).