# [luatex] \latelua

Hans Hagen pragma at wxs.nl
Sun Jul 13 11:59:04 CEST 2014

```On 7/13/2014 11:21 AM, David Carlisle wrote:

> why isn't it inserted into the stream as the first page is shipped
> out, and then appear after "Second"

fyi: when I run

x \latelua{tex.print("foo")} x

I get an error message: a number expected, so

x \latelua{tex.print(123)} x

works ok. This is of course because the "foo" ends up before a following
tex.print, the one supposed to return a number and the 123 is probably
not what i want there. In fact, if i would need latelua to print back
something (never needed that so far) I'd probably collect the data and
print it at a well defined spot

so, no matter how this works, it's something to be used with care

Hans

-----------------------------------------------------------------