alias MlistToHlistCallback
(alias) MlistToHlistCallback = fun(head: Node, display_type: string, need_penalties: boolean) -> Node
Convert a math node list into a horizontal node list.
This callback replaces LuaTeX's math list to node list conversion algorithm.
The returned node is the head of the list that will be added to the vertical or
horizontal list, the string argument is either “text” or “display”
depending on the current math mode, the boolean argument is true
if
penalties have to be inserted in this list, false
otherwise.
Setting this callback to false
is bad, it will almost certainly result in
an endless loop.
Reference:
- Corresponding C source code: mlist.c#L1866
😱 Types incomplete or incorrect? 🙏 Please contribute!