[luatex] shipout a page
Patrick Gundlach
patrick at gundla.ch
Tue Jun 28 14:20:21 CEST 2011
Hi all,
> I use node.write(...) to push nodes to the current page. Now: how do I ship out these boxes and go to the next page (with Lua, of course :-))
> I thinks tex.shipout() is the right function, but which box do I need to ship out?
>
> \box255 ?
No:
foo.tex:
----------------------
\directlua{dofile("mknodes.lua")}
\bye
----------------------
mknodes.lua:
----------------------
local tenpt = 10 * 2^16
local r = node.new("rule")
r.width = tenpt
r.height = tenpt
r.depth = tenpt
local v = node.vpack(r)
node.write(v)
tex.shipout(255)
----------------------
Assertion failed: (0), function ship_out, file ../../../source/texk/web2c/luatexdir/pdf/pdfshipout.w, line 281.
[1Abort trap
Patrick
More information about the luatex
mailing list