Ok, this is actually kind of stupid since Taco and Hans are sitting right before me, but we are in the middle of a talk. Is there a way to start LuaTeX with just a Lua file, but have this Lua file feed TeX input to a TeX process, via tex.print or similar? Or do we always need to have a TeX file which does some \directlua call before we can have Lua feeding TeX input to a TeX interpreter? -- David Kastrup
David Kastrup wrote:
Ok, this is actually kind of stupid since Taco and Hans are sitting right before me, but we are in the middle of a talk.
Is there a way to start LuaTeX with just a Lua file, but have this Lua file feed TeX input to a TeX process, via tex.print or similar?
Or do we always need to have a TeX file which does some \directlua call before we can have Lua feeding TeX input to a TeX interpreter?
texlua oeps.lua luatex --luaonly oeps.lua luatex oeps.lua ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Hans Hagen
David Kastrup wrote:
Ok, this is actually kind of stupid since Taco and Hans are sitting right before me, but we are in the middle of a talk.
Is there a way to start LuaTeX with just a Lua file, but have this Lua file feed TeX input to a TeX process, via tex.print or similar?
Or do we always need to have a TeX file which does some \directlua call before we can have Lua feeding TeX input to a TeX interpreter?
texlua oeps.lua
luatex --luaonly oeps.lua
luatex oeps.lua
Sure, but that's Lua only. I don't have a TeX process I can feed with tex.print then, or am I overlooking something here? -- David Kastrup
David Kastrup wrote:
Hans Hagen
writes: David Kastrup wrote:
Ok, this is actually kind of stupid since Taco and Hans are sitting right before me, but we are in the middle of a talk.
Is there a way to start LuaTeX with just a Lua file, but have this Lua file feed TeX input to a TeX process, via tex.print or similar?
Or do we always need to have a TeX file which does some \directlua call before we can have Lua feeding TeX input to a TeX interpreter? texlua oeps.lua
luatex --luaonly oeps.lua
luatex oeps.lua
Sure, but that's Lua only. I don't have a TeX process I can feed with tex.print then, or am I overlooking something here?
No, you are right.
David Kastrup wrote:
Ok, this is actually kind of stupid since Taco and Hans are sitting right before me, but we are in the middle of a talk.
Is there a way to start LuaTeX with just a Lua file, but have this Lua file feed TeX input to a TeX process, via tex.print or similar?
Or do we always need to have a TeX file which does some \directlua call before we can have Lua feeding TeX input to a TeX interpreter?
Yes, but you can get around that by adding a \directlua inside \everyjob. Not the a pretty solution, but better than nothing. Best wishes, Taco
participants (4)
-
Arthur Reutenauer
-
David Kastrup
-
Hans Hagen
-
taco