如何确定从Microsoft Office文档中的数学方程式获得的MathML的显示模式

问题描述 投票:0回答:1

我正在Microsoft Office Math中以显示模式显示以下Microsoft WORD方程。但是,当我得到它的MathML(如here所述)并在以下HTML文件中使用它时,该公式将以inline模式显示。

问题:Microsoft Math功能中的此错误吗?还是其他原因?我认为从MS WORD获得的MathML应该在display="block"标记中具有属性<math...>,但没有。为什么?

WORD文档中的数学方程式

enter image description here

从WORD文档中的上述数学方程式获得的MathML]:

<math xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"><mrow><munderover><mo stretchy="false">∑</mo><mrow><mi>n</mi><mo>=</mo><mn>0</mn></mrow><mrow><mn>100</mn></mrow></munderover><mrow><msub><mrow><mi>a</mi></mrow><mrow><mi>n</mi></mrow></msub></mrow></mrow></math>

HTML页面包含上面的MathML(从MS WORD中的MATH方程获得)

<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title>MathJax TeX to MathML Page</title>
    <script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML">
    </script>
</head>
<body>
    <p>Test</p>
    <math xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"><mrow><munderover><mo stretchy="false">∑</mo><mrow><mi>n</mi><mo>=</mo><mn>0</mn></mrow><mrow><mn>100</mn></mrow></munderover><mrow><msub><mrow><mi>a</mi></mrow><mrow><mi>n</mi></mrow></msub></mrow></mrow></math>
</body>
</html>

以上HTML页面的显示视图

enter image description here

我正在以Microsoft Word中的显示模式显示以下Microsoft Office Math方程。但是,当我得到MathML(如此处所述)并在以下HTML文件中使用它时,该等式显示在...

ms-word mathml
1个回答
0
投票

<moverunder> 应该

© www.soinside.com 2019 - 2024. All rights reserved.