<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
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.math | math |
$m.positionFromAnchor | text |
$m.text | text |
$m.textColor | text |
$m.textStyleDescription | text |
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.