[Dev-luatex] nodelist based tex.saveboxresource

Marcel Kr├╝ger tex at 2krueger.de
Fri Aug 3 01:09:07 CEST 2018


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.

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.

Best regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: luatex-node-savebox.diff
Type: application/octet-stream
Size: 6349 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/dev-luatex/attachments/20180803/3245ad2b/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: luatex-node-scan.diff
Type: application/octet-stream
Size: 3873 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/dev-luatex/attachments/20180803/3245ad2b/attachment-0001.obj>

More information about the dev-luatex mailing list