<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Am 29.01.2011 um 11:45 schrieb Paul Isambert:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello all,<br><br>Is there a way to make TeX read a file from the Lua interface? The best I can do is to issue:<br><br>tex.print("\\input{" .. file .. "}")<br><br>or something similar. But that is most inconvenient, and anyway it doesn't work in an initialization script. (What I do in such a script is register a function in "process_input_buffer" that returns the first line prefixed with the desired \input statements, and then unregisters itself at once. But that's horrible, it looks like a dirty trick!)<br></div></blockquote></div><br><div>With ConTeXt you write the above as “context.input("<file>")”.</div><div><br></div><div><a href="http://pragma-ade.com/general/manuals/cld-mkiv.pdf">http://pragma-ade.com/general/manuals/cld-mkiv.pdf</a></div><div><br></div><div>Wolfgang</div><div><br></div></body></html>