<br><br><div class="gmail_quote">On Tue, Jun 28, 2011 at 2:20 PM, Patrick Gundlach <span dir="ltr"><<a href="mailto:patrick@gundla.ch">patrick@gundla.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br>
<div class="im"><br>
> 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 :-))<br>
> I thinks tex.shipout() is the right function, but which box do I need to ship out?<br>
><br>
> \box255  ?<br>
<br>
</div>No:<br>
<br>
foo.tex:<br>
----------------------<br>
\directlua{dofile("mknodes.lua")}<br>
<br>
\bye<br>
----------------------<br>
<br>
<br>
mknodes.lua:<br>
----------------------<br>
local tenpt = 10 * 2^16<br>
<br>
local r = node.new("rule")<br>
r.width = tenpt<br>
r.height = tenpt<br>
r.depth = tenpt<br>
<br>
local v = node.vpack(r)<br>
node.write(v)<br>
<br>
tex.shipout(255)<br>
----------------------<br>
Assertion failed: (0), function ship_out, file ../../../source/texk/web2c/luatexdir/pdf/pdfshipout.w, line 281.<br>
 [1Abort trap<br>
<font color="#888888"><br>
<br>
<br>
Patrick<br>
<br>
<br>
</font></blockquote></div>With <br>\tracingall<br>--\directlua{dofile("mknodes.lua")}<br>\bye<br>
<br>we can see the otr:<br><br>\output->{\plainoutput }<br><br>\plainoutput ->\shipout \vbox {\makeheadline \pagebody \makefootline }\advancep<br>ageno \ifnum \outputpenalty >-\@MM \else \dosupereject \fi <br>{internal vertical mode: \shipout}<br>
<br clear="all">Does it help ?<br>-- <br>luigi<br><br>