|
Prev | Next | mathml |
| Syntax |
$latex \mathml{Start &\#xUnicode; Stop> } $$
|
mathml command will
XML dependently interpret
the specified MathML command.
This command is not
standard Latex
.
Between the { and the } in the syntax,
the sequence \# is converted to #
(so that the mathml can be used with macros
).
The mathml command has two purposes described below:
| Start | Stop | Unicode |
<mo stretchy='false'> |
</mo> | an operator that should not stretch to fit |
<mi mathvariant='normal'> |
</mi> | an identifier that should be displayed in normal font |
mathml command is used to test,
and discuss,
certain MathML commands in the context for OMhelp.
These usages the mathml command are not considered standard
and may not work in future versions.
http://www.w3.org/TR/MathML2/chapter3.html#presm_tokel
there is a paragraph with the text:
"Finally, there is a redundancy problem
with the mathvariant attribute that must
be dealt with as a special case.
When the mathvariant attribute
is used on an mi element containing a single character ...
the resulting rendering will be visually indistinguishable
from an mi element with no attributes containing
the corresponding SMP character."
From this discussion, it seems to me that both of the
x in the commands below should
be displayed the same.
$latex \[
\mathml{
<mi>x</mi>
<mi mathvariant="normal">x</mi>
}
\]$$
generates the output
\[
\mathml{
<mi>x</mi>
<mi mathvariant="normal">x</mi>
}
\]
On the other hand, it appears that the browsers are changing
fonts as requested.
This is useful because
mi elements are token elements and as such,
mstyle elements can not be placed with in them.
Thus, there does not seem to be another
way to override the changing of fonts
by mi elements that have single character values.
$latex \mathml{
<mover>
<mrow>
<mi>x</mi><mo>+</mo><mi>y</mi><mo>+</mo><mi>z</mi>
</mrow>
<mo stretchy="true"> ︷ </mo>
</mover>
<mspace width="2em"/>
<mover>
<mrow>
<mi>x</mi><mo>+</mo><mi>y</mi><mo>+</mo><mi>z</mi>
</mrow>
<mo stretchy="true"> ˜ </mo>
</mover>
} $$
results in the following output
\mathml{
<mover>
<mrow>
<mi>x</mi><mo>+</mo><mi>y</mi><mo>+</mo><mi>z</mi>
</mrow>
<mo stretchy="true"> ︷ </mo>
</mover>
<mspace width="2em"/>
<mover>
<mrow>
<mi>x</mi><mo>+</mo><mi>y</mi><mo>+</mo><mi>z</mi>
</mrow>
<mo stretchy="true"> ˜ </mo>
</mover>
}