<mrow>

<mrow> is a Display Math component that renders a single line within a block of aligned display mathematics when nested within the <md> or the <mdn> component.

Attributes and Properties

Attributes for <mrow>
AttributeTypeValues
anchor = "…"point
draggable = "…"boolean"true" "false"
layer = "…"number
number = "…""true" "false"
positionFromAnchor = "…"text"upperright" "upperleft" "lowerright" "lowerleft" "top" "bottom" "left" "right" "center"
Props for <mrow name="m">
PropertyType
$m.anchorpoint
$m.backgroundColortext
$m.disabledboolean
$m.draggableboolean
$m.equationTagtext
$m.fixedboolean
$m.fixLocationboolean
$m.hiddenboolean
$m.latexlatex
$m.layernumber
$m.mathmath
$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: <mdn> with nested <mrow> children

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


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

An <mrow> component cannot contain an <answer> or a <mathInput/>.


Example: <mrow> with referenced <math>

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

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


Attribute Example: number

The number attribute can be set to false to prevent the default numbering of an individual <mrow> within an <mdn>.


Property Example: latex

The latex property returns the LaTeX code for rendering the <mrow>.


Property Example: text

The text property returns the text value of the <mrow>.