Skip to main content

Module nodelib

Module nodelib 

Source
Expand description

The node library (LuaTeX manual §10.5) and node.direct.

Node userdata (LNode) and direct integers both refer to nodes in the engine’s arena. Type ids, subtypes and field names come from the data recorded from LuaTeX’s own node library (retex_engine::nodes::LUATEX_NODE_TYPES).

Structs§

LAttr
An attribute list as Lua sees it (n.attr, node.current_attr): a value that can be given to other nodes, compared, and traversed. LuaTeX returns an attribute_list node (id 40), followed by an attribute node (id 38) per attribute set; here only id and subtype are fields, and [attr_entries] is what node.traverse yields.
LNode
A node userdata.

Functions§

install
Installs node and node.direct.