[luatex] Building a PDF with Lua code, without a TeX stub

Deepak Jois deepak.jois at gmail.com
Thu Oct 20 10:20:46 CEST 2016


On Thu, Oct 20, 2016 at 12:23 PM, luigi scarso <luigi.scarso at gmail.com> wrote:
> you can consider to build your own format and run it by a wrapper
> as done in context in the minimals
>
> $ cat z.lua
> for k,v in pairs(_G) do print(k,v) end
>
> $ mtxrun --script plain z.lua
>

I installed ConTeXt standalone and did the same thing as you, but with
tex related invocations, and I got this:

$ cat hello.lua
tex.sprint("Hello World")
tex.sprint("\bye")

$ mtxrun --script plain hello.lua
mtx-plain       | running command 'luatex --fmt=luatex-plain  "hello.lua"'
hello.lua:1: attempt to call field 'sprint' (a nil value)


More information about the luatex mailing list