Le 28/06/2011 16:34, Paul Isambert a écrit :


Le 28/06/2011 16:03, Patrick Gundlach a écrit :
Hi Paul,

tex.shipout(255)
That should be:
tex.shipout(tex.box[255])
That is in conflict with the manual (which states that tex.shipout's argument is a number)

Indeed, there's an error in the manual.

as well does not give the desired result. (There should be a 10pt by 20pt box on the first page.

If I'm not mistaken, when tex.shipout() occurs, the node appended to the main vertical list hasn't been moved to box 255 yet. I can't remember exactly the places when TeX does move material to the output box, but I think you should consider them.

Sorry, what I've said is completely wrong. tex.shipout() does take a number as its argument. But material is added to box 255 only when TeX is calling \output. So tex.shipout() outside an output routine is very likely to shipout an empty box. I /think/ I got it right this time :)

Best,
Paul

Reply via email to