| 1135 | """Render this node.""" |
| 1136 | |
| 1137 | def is_char_node(self) -> bool: |
| 1138 | # TeX defines a `char_node` as one which represents a single character, |
| 1139 | # but also states that a `char_node` will never appear in a `Vlist` |
| 1140 | # (node134). Further, nuclei made of one `Char` and nuclei made of |
| 1141 | # multiple `Char`s have their superscripts and subscripts shifted by |
| 1142 | # the same amount. In order to make Mathtext behave similarly, just |
| 1143 | # check whether this node is a `Vlist` or has any `Vlist` descendants. |
| 1144 | return True |
| 1145 | |
| 1146 | |
| 1147 | class Box(Node): |