class ChoiceNode
- supers: Node
Warning: never assign a node list to the display
, text
, script
, or scriptscript
field unless you are sure its internal link
structure is correct, otherwise an error can occur.
Example:
assert.node_type("choice", nil, {
id = "choice (17)",
fields = {
"prev (-1)",
"next (0)",
"id (1)",
"subtype (2)",
"attr (3)",
"display (4)",
"text (5)",
"script (6)",
"scriptscript (7)",
},
})
Reference:
- Corresponding C source code: texnodes.c#L739-L744
😱 Types incomplete or incorrect? 🙏 Please contribute!
fields
ChoiceNode.attr
ChoiceNode.attr : Node {
next: Node?,
prev: Node?,
id: integer,
subtype: integer,
head: Node?,
attr: Node,
}
A list of attributes.
ChoiceNode.display
ChoiceNode.display : Node {
next: Node?,
prev: Node?,
id: integer,
subtype: integer,
head: Node?,
attr: Node,
}
list of display size alternatives
ChoiceNode.text
ChoiceNode.text : Node {
next: Node?,
prev: Node?,
id: integer,
subtype: integer,
head: Node?,
attr: Node,
}
list of text size alternatives
ChoiceNode.script
ChoiceNode.script : Node {
next: Node?,
prev: Node?,
id: integer,
subtype: integer,
head: Node?,
attr: Node,
}
list of scriptsize alternatives
ChoiceNode.scriptscript
ChoiceNode.scriptscript : Node {
next: Node?,
prev: Node?,
id: integer,
subtype: integer,
head: Node?,
attr: Node,
}
list of scriptscriptsize alternatives