Jin-Hwan Cho wrote:
I am trying a few tests with luatex.
1. Made a format file "luaetex.fmt" by "luatex --ini etex.ini" and a lua file "luaetex.lua" containing just one line "node.types()"
that's rather useless lua make that for k, v in ipairs(nodes.types()) do print(k,v) end or so; also keep in mind that some libraries are initialized and available a bit later (after all, there is no need to initialize nodes when just processing lua code)
2. Test file "test.tex" is as follows:
\directlua0{node.types()} \bye
just a function
3. Run "luatex --fmt=luaetex.fmt test". Then there is no problem.
4. Instead, "luatex --lua=luaetex.lua --fmt=luaetex.fmt test" causes an error.
what error
Why don't we use the node library in the lua file "luaetex.lua"?
? hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------