<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
Attribute | Type | Values |
---|---|---|
anchor = "…" | point | |
draggable = "…" | boolean | "true" "false" |
layer = "…" | number | |
positionFromAnchor = "…" | text | "upperright" "upperleft" "lowerright" "lowerleft" "top" "bottom" "left" "right" "center" |
Property | Type |
---|---|
$m.anchor | point |
$m.backgroundColor | text |
$m.disabled | boolean |
$m.draggable | boolean |
$m.fixed | boolean |
$m.fixLocation | boolean |
$m.hidden | boolean |
$m.latex | latex |
$m.layer | number |
$m.positionFromAnchor | text |
$m.text | text |
$m.textColor | text |
$m.textStyleDescription | text |
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.