[luatex] The "read" half of TeX_without_TeX (in a REPL)
Eduardo Ochs
eduardoochs at gmail.com
Thu Jul 19 03:44:41 CEST 2018
Done! I've adapted your example and added it to the slides!
Thanks a lot!!! =)
Eduardo Ochs
http://angg.twu.net/math-b.html#tug-2018
http://angg.twu.net/e/luatex.e.html#tex-without-tex-email
On Tue, Jul 17, 2018 at 8:35 PM, Henri Menke <henrimenke at gmail.com> wrote:
>
>
To traverse the glyphs in a box use node.traverse_id(). It's all
> documented in the LuaTeX manual. The following example will print abc in
> the log. N.B.: node.traverse_id() does not recurse into sublists.
>
> \setbox0=\hbox{abc}
>
> \directlua{
> local head = tex.box[0].list
> %
> for n in node.traverse_id(node.id("glyph"),head) do
> print(utf8.char(n.char))
> end
> }
>
> \bye
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/luatex/attachments/20180718/852863f3/attachment.html>
More information about the luatex
mailing list