[NTG-context] passing variables/data between context and lua

Martin Althoff martin.althoff at yahoo.com
Fri Sep 27 06:59:38 CEST 2019

Hi, I am trying to pass variables/data between context and lua. Lua would be used for
calculations on data coming from context.

Unfortunately I can't figure out what to do. The code below doesn't work, but is there to
illustrate my idea. 

Any help would be much appreciated. Thanks, Martin 



local points = \question * 92
-- do some calculations with points and return to to context

% lots of Text in between 
The answer is \answer


More information about the ntg-context mailing list