<div dir="ltr">Perfect!<div>Thanks! =) =)</div><div>  E.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 7 Mar 2019 at 00:38, Henri Menke <<a href="mailto:henrimenke@gmail.com">henrimenke@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On 7/03/19 4:15 PM, Eduardo Ochs wrote:<br>
> Hi list,<br>
> <br>
> sorry, I know that this _should_ be trivial but I can't figure out how<br>
> to do it from the manual...<br>
> <br>
> Suppose that I set the box 0 by running this:<br>
> <br>
>   \setbox0\hbox{%<br>
>     \hbox{a}%<br>
>     \hbox{bcde}%<br>
>     \hbox{fg}%<br>
>   }<br>
> <br>
> How do I get - from Lua - number of sub-boxes of box0 and the width,<br>
> the height and the depth of each one?<br>
<br>
Units are sp.  To get pt, divide by 2^16.<br>
<br>
\setbox0\hbox{%<br>
  \hbox{a}%<br>
  \hbox{bcde}%<br>
  \hbox{fg}%<br>
}<br>
<br>
\directlua{<br>
for hlist in node.traverse_id(<a href="http://node.id" rel="noreferrer" target="_blank">node.id</a>"hlist", tex.box[0].list) do<br>
    print(hlist.width, hlist.height, hlist.depth)<br>
end<br>
}<br>
<br>
\bye<br>
<br>
> <br>
>   Thanks!<br>
>     Eduardo Ochs<br>
>     <a href="http://angg.twu.net/dednat6.html" rel="noreferrer" target="_blank">http://angg.twu.net/dednat6.html</a><br>
>     <a href="http://angg.twu.net/math-b.html" rel="noreferrer" target="_blank">http://angg.twu.net/math-b.html</a><br>
> <br>
<br>
<br>
</blockquote></div>