You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MathML produced by MathJax is actually correct; but it seems that the WIRIS renderer does not implement the default attributes from the MathML Operator Dictionary, even for parentheses and other standard delimiters. WIRIS seems to require <mo stretchy="true">|</mo> in order to have the delimiters be stretchy, despite the entries in the operator dictionary for '|' in the prefix and postfix positions.
Although the Operator Dictionary given at the link above is non-normative, some form of default attributes for things like stretchy operators is essential to making MathML work as expected. If you add stretchy="true" to the <mo>|</mo> elements, WIRIS renders it as expected, but this attribute should be the default (according to the Operator Dictionary), so should not be needed explicitly. So it seems that WIRIS is at fault, here, not MathJax.
Note also that the MathML specification indicates that <mfenced> is equivalent to an expanded <mrow>-with-<mo> construction:
Thus, any mfenced element is completely equivalent to an expanded form described below.... A MathML renderer is required to render either of these forms in exactly the same way.
The fact that the WIRIS renderer treats <mfenced open="|" close="|">...</mfenced> differently from <mrow><mo>|</mo>...<mo>|</mo></mrow> (even if the fence="true" attribute is applied explicitly to the <mo> elements) indicate that WIRIS is not following the MathML specification.
version 2.7.5
TeX input:
MathJax will generate following MathML from it
But if you copy the generated MathML code into http://www.wiris.com/editor/demo/en/developers#mathml-latex or MS Word, the actually rendered math equation is like:
So I think the generate MathML is incorrect for
vmatrix
, maybeis more correct.
The text was updated successfully, but these errors were encountered: