13 Dec
2007
13 Dec
'07
4:34 p.m.
On Thu, Dec 13, 2007 at 02:40:07PM +0100, Taco Hoekwater wrote:
General remark: suck attempts to squeeze tex input to behave like lua source code are hard to debug and even harder to predict. It is much less confusing if you create either an environment like
\startluacode .. \stopluacode
with appropriate catcode changes,
And \endlinechar=10 \catcode10=12 to enable the Lua parser seeing multiple lines instead of one merged huge line.
or if you put the lua code in a separate file and dofile('thefile').
Or use Lua's module management and make a separate file as module:
module('foobar', package.seeall)
...
That get's loaded via
require('foobar')
Yours sincerely
Heiko