Math Node¶
Specification¶
Math node for presenting numbered equations
- type: string, (“math”)
- See also Node
- enumerated: boolean, optional
- count this math block for numbering based on kind, e.g. See equation (1a)
- enumerator: string, optional
- resolved enumerated value for this math block
- identifier: string, optional
- See also OptionalAssociation
- label: string, optional
- See also OptionalAssociation
- value: string
- See also Literal
- position: object, optional, (Position)
- See also Node
- data: object, optional
- See also Node
Example¶
Markup
AST
Render
```{math}
:label: matrix
Ax = b
```
type: root
children:
- type: mystDirective
name: math
options:
label: matrix
value: Ax = b
children:
- type: math
identifier: matrix
label: matrix
value: Ax = b
Inline Math Node¶
Specification¶
Fragment of math, similar to InlineCode, using role {math}
- type: string, (“inlineMath”)
- See also Node
- value: string
- See also Literal
- position: object, optional, (Position)
- See also Node
- data: object, optional
- See also Node
Example¶
Markup
AST
Render
This is genius {math}`e=mc^2`
type: root
children:
- type: paragraph
children:
- type: text
value: 'This is genius '
- type: mystRole
name: math
value: e=mc^2
children:
- type: inlineMath
value: e=mc^2
This is genius