[luatex] Dimensions of sub-boxes?
henrimenke at gmail.com
Thu Mar 7 04:38:00 CET 2019
On 7/03/19 4:15 PM, Eduardo Ochs wrote:
> Hi list,
> sorry, I know that this _should_ be trivial but I can't figure out how
> to do it from the manual...
> Suppose that I set the box 0 by running this:
> How do I get - from Lua - number of sub-boxes of box0 and the width,
> the height and the depth of each one?
Units are sp. To get pt, divide by 2^16.
for hlist in node.traverse_id(node.id"hlist", tex.box.list) do
print(hlist.width, hlist.height, hlist.depth)
> Eduardo Ochs
More information about the luatex