15.07.2013 Views

luatexref-t.pdf.

luatexref-t.pdf.

luatexref-t.pdf.

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

function( extrainfo)<br />

end<br />

The string extrainfo gives some additional information about what TEX's state is with respect to the<br />

‘current page'. The possible values are:<br />

value explanation<br />

alignment a (partial) alignment is being added<br />

after_output an output routine has just finished<br />

box a typeset box is being added<br />

new_graf the beginning of a new paragraph<br />

vmode_par \par was found in vertical mode<br />

hmode_par \par was found in horizontal mode<br />

insert an insert is added<br />

penalty a penalty (in vertical mode)<br />

before_display immediately before a display starts<br />

after_display a display is finished<br />

end LuaTEX is terminating (it's all over)<br />

This callback does not replace any internal code.<br />

4.1.4.2 pre_linebreak_filter<br />

This callback is called just before LuaTEX starts converting a list of nodes into a stack of \hboxes, after<br />

the addition of \parfillskip.<br />

function( head, groupcode)<br />

return true | false | newhead<br />

end<br />

The string called groupcode identifies the nodelist's context within TEX's processing. The<br />

range of possibilities is given in the table below, but not all of those can actually appear in<br />

pre_linebreak_filter, some are for the hpack_filter and vpack_filter callbacks that will<br />

be explained in the next two paragraphs.<br />

value explanation<br />

main vertical list<br />

hbox \hbox in horizontal mode<br />

adjusted_hbox \hbox in vertical mode<br />

vbox \vbox<br />

vtop \vtop<br />

align \halign or \valign<br />

disc discretionaries<br />

insert packaging an insert<br />

vcenter \vcenter<br />

38<br />

LuaTEX Lua Libraries

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!