Mathjax MathML标记:“stretchy”属性问题

Mathjax MathML标记:“stretchy”属性问题,mathjax,mathml,Mathjax,Mathml,在下面的示例中,我想知道为什么mo标记的属性会给出类似的显示。我想下面的第二个数学是∑ 将在总和符号的顶部和底部显示上限和下限,如下图2所示。但这两个例子都有∑ 和∑ 分别在总和符号的侧面显示限制: 备注:我正在使用 HTML与MathML 显示上述HTML[使用MathJax]: 第二个MathML的所需显示∑: 您使用了错误的属性。您想要的不是stretchy=false,而是movablelimits=false或使用或围绕表达式 例如: 可移动限制=错误 ∑ K = 0 N R K

在下面的示例中,我想知道为什么mo标记的属性会给出类似的显示。我想下面的第二个数学是∑ 将在总和符号的顶部和底部显示上限和下限,如下图2所示。但这两个例子都有∑ 和∑ 分别在总和符号的侧面显示限制:

备注:我正在使用

HTML与MathML

显示上述HTML[使用MathJax]:

第二个MathML的所需显示∑:


您使用了错误的属性。您想要的不是stretchy=false,而是movablelimits=false或使用或围绕表达式

例如:

可移动限制=错误 ∑ K = 0 N R K

显示=块 ∑ K = 0 N R K

mstyle displaystyle=true ∑ K = 0 N R K

谢谢你,特别是你的解释。
<!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>With stretchy="true"</p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"><mrow><msubsup><mo stretchy="true">∑</mo><mrow><mi>k</mi><mo>=</mo><mn>0</mn></mrow><mrow><mi>n</mi></mrow></msubsup><mrow><mfenced separators="|"><mrow><mfrac linethickness="0pt"><mrow><mi>n</mi></mrow><mrow><mi>k</mi></mrow></mfrac></mrow></mfenced><msup><mrow><mi>x</mi></mrow><mrow><mi>k</mi></mrow></msup><msup><mrow><mi>a</mi></mrow><mrow><mi>n</mi><mo>-</mo><mi>k</mi></mrow></msup></mrow></mrow></math>
    <p>With stretchy="false"</p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"><mrow><munderover><mo stretchy="false">∑</mo><mrow><mi>k</mi><mo>=</mo><mn>0</mn></mrow><mrow><mi>n</mi></mrow></munderover><mrow><msup><mrow><mi>r</mi></mrow><mrow><mi>k</mi></mrow></msup></mrow></mrow></math>
</body>
</html>