HTML5 MathML
HTML5 MathML movablelimits Attribute
The movablelimits attribute on the <mo> element controls whether limits attached to an operator move above and below it in display style, or stay beside it. Summation and limit operators use it.
Definition and Usage
When movablelimits is true and the formula is in block (display) mode, sub and superscripts on the operator are drawn under and over it. In inline mode they stay to the side to save vertical space. This matches how sums and limits are typeset in textbooks.
Syntax
<mo movablelimits="true">∑</mo>Example
This shows a limit expression where lim has its condition below it in display mode.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>MathML movablelimits attribute</title>
</head>
<body>
<math display="block">
<mrow>
<munder>
<mo movablelimits="true">lim</mo>
<mrow><mi>x</mi><mo>→</mo><mn>0</mn></mrow>
</munder>
<mfrac>
<mrow><mi>sin</mi><mi>x</mi></mrow>
<mi>x</mi>
</mfrac>
</mrow>
</math>
</body>
</html>movablelimits is part of MathML Core. Its effect depends on the display mode - it only moves limits in block/display math.
Key Takeaways
- movablelimits lets an operator's limits sit above and below it.
- The effect only applies in display (block) mode.
- It is used for sums, products and limits.
