13 Mar
2010
13 Mar
'10
5:20 p.m.
David Kastrup wrote:
Taco Hoekwater
writes: You can already re-break the paragraph with the current tex.linebreak: just create a copy of the node list before feeding it in, and loop over the output boxes. tex.linebreak does not remove or reallocate those existing nodes, at most it hides them in discretionaries inside hlists. Probably this is not quite what you had in mind, though.
Fiddle and reiterate might do the trick most of the time, but it feels artificial in contrast to doing it in one pass "as intended" rather than brute-forcing an efficient algorithm iteratively.
I agree, and that is an important drive behind the wish for a pure lua solution. Best wishes, Taco