[Dev-luatex] nodelist based tex.saveboxresource

Hans Hagen j.hagen at xs4all.nl
Fri Aug 3 15:51:24 CEST 2018

On 8/3/2018 1:09 AM, Marcel Kr├╝ger wrote:
> Hello,
> I want to suggest extending the tex.saveboxresource interface to accept a hlist or vlist node as an alternative to a box number as first argument.
> Currently creating a boxresource from Lua node list requires saving the list in a TeX box register, only to delete that register again by tex.saveboxresource.
> A direct way to transform a h/vlist into a boxresource would make such code easier and avoid potential side effects from changing the TeX registers.
> An experimental patch with a suggested implementation is attached.

ok, makes sense (but not entirely ok that way but i can fix it)

> I also attached a patch implementing a node.scan method which I think would be another nice addition for LuaTeX: It scans a box with rules similar to `\setbox0`
> and returns the node. This allows passing box-like material to LuaTeX without requiring box registers.

this is tricky stuff so i need to have a close look at side effects 
(it's also more relatex to token scanning so belongs in another namespace)

i'll have a go at it


                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl

More information about the dev-luatex mailing list