5 Apr
2020
5 Apr
'20
2:28 p.m.
Jairo A. del Rio schrieb am 05.04.2020 um 15:00:
I'm writing a project in ConTeXt MKIV and I want to load some (pure) Lua libraries and bindings (defining \ctxlua and the like). For instance, I have the file foo.lua with some macros and I want to use them in my project. Something like this:
\startproject project %\component foo.lua %This does not work %\environment foo.lua %This does not work %\input foo.lua %This does not work %\directlua{dofile("foo.lua")} %This does not work even when the project file and foo.lua are in the same folder. \stopproject
What should I do? Thank you in advance.
1. \luaenvironment <file> 2. \useluamodule [<file>] 3. \ctxloadluafile {<file>} 4. \loadluafile [<file>] or \loadluafileonce [<file>] Wolfgang