<m>

<m> is a Display Math component that renders inline mathematical content. The <m> tag accepts Latex and DoenetML mathematical content as input.

For displaying mathematics alone on a line by itself, see <me>, <men> or <md>, <mdn> (for aligned mathematics). See also <math> for mathematical manipulations using a computer algebra system.

Attributes and Properties

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

Example: <m> inside a paragraph

The <m> component is used to format isolated content within a section of text that has been enclosed within a <p>, or paragraph component.


Example: <m> in combination with <math>

An <m> tag encloses an inline math expression that also contains a reference to a named <math>.


Example: <m> in combination with mathInput

An <m> tag encloses an inline math expression that also contains a reference to a named <mathInput/>. Note that a <mathInput/> cannot be defined within an <m> component.


Example: <m> in combination with <answer>

An <m> tag encloses an inline math expression that precedes an <answer>. Note that an <answer> cannot be defined within an <m> component.