MathSpan

class MathSpan(val expression: String, val style: NodeStyle = NodeStyle.DEFAULT) : Node, StylableNode, PrimitiveFunctionBackedNode

A math (TeX) inline.

Parameters

expression

expression content

style

styling applied to the inline

Constructors

Link copied to clipboard
constructor(expression: String, style: NodeStyle = NodeStyle.DEFAULT)

Properties

Link copied to clipboard
open override val backingFunctionName: String

The name of the function that backs this node, from a loaded library.

Link copied to clipboard
Link copied to clipboard
open override val isBackingCallBlock: Boolean

Whether the synthesized backing call should be treated as a block call. Defaults to true; inline primitive nodes should override to false so the inline output mapper is used during expansion.

Link copied to clipboard
open override val style: NodeStyle

Functions

Link copied to clipboard
open override fun <T> accept(visitor: NodeVisitor<T>): T

Accepts a visitor.

Link copied to clipboard

Retrieves the stored media associated with this node, if any.

Link copied to clipboard

Materializes this node's properties into the arguments of the backing function call. Argument names must match the parameter names of the function identified by backingFunctionName.

Link copied to clipboard
fun Node.withChildren(newChildren: List<Node>): Node

Returns a copy of this node with its children replaced by newChildren.

Link copied to clipboard