Using a LuaTeX callback to “parse” typeset paragraphs
Creative Commons CC BY 4.0
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.