Suppose I have three numerical variables a,b,c
and I want to use them in TeX then I write :
token.set_macro("a",a,'global')
token.set_macro("b",b,'global')
token.set_macro("c",c,'global')
I would like not to have to write "a", "b" and "c" and if possible treat all cases together, something like f(a,b,c).
After some research I found a very heavy solution With debug.getlocal
Is it possible to find another solution?
Finally the question should be: if pi=3.14 how to write
tex.print("pi" .."="..tostring(pi))
without duplicating pi
icecream
-answer looks interesting, imho)