On Sun, 16 Jan 2011, Hans Hagen wrote:
On 15-1-2011 11:57, Aditya Mahajan wrote:
What is the best way to define the equivalent of
\setvalue{\e!start\NAME}{...}
in lua.
e_start = ??
context.setvalue(e_start .. name, "...")
\starttext
\startluacode
local elements = interfaces.complete.elements
local interface = storage.shared.currentinterface
local e_start = elements.start[currentinterface]
local e_stop = elements.stop [currentinterface]
context.setvalue(e_start .. "something", "[[")
context.setvalue(e_stop .. "something", "]]")
\stopluacode
\startsomething Yes we can!\stopsomething
\stoptext
Thank you.
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
___________________________________________________________________________________