Quantcast
Channel: LuaLaTeX for dummies: basic directlua use - TeX - LaTeX Stack Exchange
Browsing latest articles
Browse All 2 View Live

Image may be NSFW.
Clik here to view.

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 Article


LuaLaTeX 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

Browsing latest articles
Browse All 2 View Live