[luatex] shipout a page
luigi scarso
luigi.scarso at gmail.com
Tue Jun 28 15:04:03 CEST 2011
On Tue, Jun 28, 2011 at 2:20 PM, Patrick Gundlach <patrick at gundla.ch> wrote:
> 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
>
>
> With
\tracingall
--\directlua{dofile("mknodes.lua")}
\bye
we can see the otr:
\output->{\plainoutput }
\plainoutput ->\shipout \vbox {\makeheadline \pagebody \makefootline
}\advancep
ageno \ifnum \outputpenalty >-\@MM \else \dosupereject \fi
{internal vertical mode: \shipout}
Does it help ?
--
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/luatex/attachments/20110628/94147a66/attachment.html>
More information about the luatex
mailing list