class InsNode
- supers: Node
Insertions are represented by ins node records, where the subtype indicates the corresponding box number.
Example:
assert.node_type("ins", nil, {
id = "ins (3)",
fields = {
"prev (-1)",
"next (0)",
"id (1)",
"subtype (2)",
"attr (3)",
"cost (4)",
"depth (5)",
"height (6)",
"spec (7)",
"head (8)",
},
})
Reference:
- Corresponding C source code: texnodes.c#L818-L824
- Donald Ervin Knuth. “TeX: The Program”: section 140, page 52 tex.pdf
😱 Types incomplete or incorrect? 🙏 Please contribute!
fields
InsNode.subtype
the insertion class
InsNode.attr
InsNode.attr : Node {
next: Node?,
prev: Node?,
id: integer,
subtype: integer,
head: Node?,
attr: Node,
}
A list of attributes.
InsNode.cost
the penalty associated with this insert
InsNode.height
height of the insert
InsNode.depth
depth of the insert
InsNode.head
InsNode.head : Node {
next: Node?,
prev: Node?,
id: integer,
subtype: integer,
head: Node?,
attr: Node,
}
the first node of the body of this insert
InsNode.list
InsNode.list : Node {
next: Node?,
prev: Node?,
id: integer,
subtype: integer,
head: Node?,
attr: Node,
}
the first node of the body of this insert