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
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to