[luatex] Interfere with page breaking to balance pages

Paul Isambert zappathustra at free.fr
Thu Oct 18 07:04:14 CEST 2012


Patrick Gundlach <patrick at gundla.ch> a écrit:
> 
> > For me the following works
> > 
> > \directlua{
> >  function myfunc(box)
> >    texio.write_nl('box = ' .. box)
> >  end
> > }
> > 
> > \AtBeginShipout{%
> >  \directlua{myfunc(\the\AtBeginShipoutBox)}%
> > }
> 
> you can do something like this:
> 
> tex.box["AtBeginShipoutBox"]
> 
> that's a bit more luaeque IMO.

And better yet, though totally equivalent:

  tex.box.AtBeginShipoutBox

Best,
Paul



More information about the luatex mailing list