Using a LuaTeX callback to “parse” typeset paragraphs

Author
Graham Douglas
View Count
1472
License
Creative Commons CC BY 4.0
Abstract
This example is a LuaTeX-based plain TeX project which implements a LuaTeX callback function to show the components of a typeset paragraph. It is designed to accompany a blog post and, for simplicity, it is not a full-blown “parser”—for example, it is not recursive and ignores a number of node types. However, it offers a useful starting point for anyone wishing to explore callbacks in more detail.
Using a LuaTeX callback to “parse” typeset paragraphs