Hans Hagen wrote:
On 19-8-2010 9:36, linuxss wrote:
question: how to see all the nodes using callback in a shipout mode? or how to find out which hlist/vlist will be outputted?
shipout is somewhat special and we don't have a callback for the shipout itself
in a regular macro package, the page is packaged in a box (often 255 ) and you can hook in some lua code there:
- locate the \shipout command being used - see what box is shipped out - do a directlua just before \shipout and look the box
so, something:
\directlua{analyze(tex.box[255)}
(there will be a callback for this but it's not an isolated event as for instance xforms are also shipped out and the xform subsystem is not opened up / redone yet)
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
thanks, Hans! thats a very interesting idea to find \shipout and analyze box 255. I'll try it.