<md>

<md> is a Display Math component that renders a block of aligned display mathematics when used in combination with the <mrow> component.

Attributes and Properties

Attributes for <md>
AttributeTypeValues
anchor = "…"point
draggable = "…"boolean"true" "false"
layer = "…"number
positionFromAnchor = "…"text"upperright" "upperleft" "lowerright" "lowerleft" "top" "bottom" "left" "right" "center"
Props for <md name="m">
PropertyType
$m.anchorpoint
$m.backgroundColortext
$m.disabledboolean
$m.draggableboolean
$m.fixedboolean
$m.fixLocationboolean
$m.hiddenboolean
$m.latexlatex
$m.layernumber
$m.positionFromAnchortext
$m.texttext
$m.textColortext
$m.textStyleDescriptiontext

Example: <md> with nested <mrow> children

The data contained within an <md> block must be contained in an <mrow>. Equations and content will align vertically where the & symbol is entered in each row.


Example: <md> cannot contain <answer> or <mathInput/>

An <md> block cannot contain an <answer> or a <mathInput/>.


Example: <md> with referenced <math>

Computational DoenetML components, such as <math>, or <derivative>, can be nested within or referenced within an <md> block.

Exceptions: The <answer> component, the <mathInput/> component, and other <md> components cannot be nested within an <md> block.


Example: <md> on a <graph>

An <md> block can be placed on a <graph>. The anchor attribute can be used to specify its initial location.


Attribute Example: Standard graphical attributes

Since an <md> block can be placed on a graph, the standard graphical attributes draggable, hide, and styleNumber can be used to control its appearance and behavior.


Property Example: latex

The latex property returns the LaTeX code for rendering the equation block.


Property Example: text

The text property returns the text value of the equation block.