[NTG-context] Exchangeing content of variables between luacode and context

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Tue Nov 19 16:55:15 CET 2019

Rudolf Bahr schrieb am 19.11.2019 um 14:19:
> Hello All!
> To send variable contents from context to luacode I can put them into the
> function invocation or use 'tokens.getters.macro("TestA")',
> an interesting and very nice possibility to let luacode itself getting
> contents of context macros. The (only?) way back, from luacode to context,
> could be done by 'tokens.setters.macro("TestA","a")' [1] .
> Now, to store Luacode's variable contents permanently in context programs
> I could Luacode let copy my ConTeXt program to another place on disk with
> a newly defined macro inside. But, does somebody know (by chance) of another,
> more elegant possibility? I think giving back a value by "return" won't work.

Can you make a minimal example of your actual problem.


More information about the ntg-context mailing list