↧
Answer by Heiko Oberdiek for LuaLaTeX for dummies: basic directlua use
The function is called fact(#1) without the key word function. Also the result needs to be feed back to TeX, e.g. via...
View ArticleLuaLaTeX for dummies: basic directlua use
I'm trying to understand the basics of lua programming within LaTeX.I have this simple function in a file called luatest.lua:function fact (n) if n == 0 then return 1 else return n * fact(n-1)...
View Article