class MathCharNode
- supers: Node
The math_char
is the simplest subnode field, it contains the character
and family for a single glyph object.
Example:
assert.node_type("math_char", nil, {
id = "math_char (23)",
fields = {
"prev (-1)",
"next (0)",
"id (1)",
"subtype (2)",
"attr (3)",
"fam (4)",
"char (5)",
},
})
Reference:
- Corresponding C source code: texnodes.c#L882-L885
😱 Types incomplete or incorrect? 🙏 Please contribute!
fields
MathCharNode.attr
MathCharNode.attr : Node {
next: Node?,
prev: Node?,
id: integer,
subtype: integer,
head: Node?,
attr: Node,
}
A list of attributes.
MathCharNode.char
The character index.
MathCharNode.fam
The family number.