[luatex] Interfere with page breaking to balance pages

Patrick Gundlach patrick at gundla.ch
Wed Oct 17 15:50:44 CEST 2012


> 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.

Patrick



More information about the luatex mailing list