"mrow" as Virtical Stretch Boundary

Q

How virtical stretch is applied within a <mrow> element?

✍: FYIcenter.com

A

<mrow> element is the default boundary for vertically stretched operators.

The example below shows that parentheses on the left side are not stretched because of the <mrow> boundary.

<math><mi>f</mi><mo>⁡</mo>
  <mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mo>=</mo>
  <mo>(</mo><mfrac><mfrac><mn>1</mn><mn>2</mn></mfrac>
  <mn>3</mn></mfrac><mo>)</mo></math>
     f⁡
      (x)=
      (12
      3)

The example below shows that parentheses on both sides are stretched without the <mrow> boundary.

<math><mi>f</mi><mo>⁡</mo>
  <mo>(</mo><mi>x</mi><mo>)</mo><mo>=</mo>
  <mo>(</mo><mfrac><mfrac><mn>1</mn><mn>2</mn></mfrac>
  <mn>3</mn></mfrac><mo>)</mo></math>
     f⁡
      (x)=
      (12
      3)

Note that some old browsers do not support automatical stretched operators. In this case, you can try the <mfenced> element to replace stretched operators:

 

⇒ Horizontally Stretched Operators

⇐ Vertically Stretched (Fence) Operators

⇑ Stretched and Large Operators

⇑⇑ MathML (Mathematical Markup Language)

2026-10-24, ∼1845🔥, 0💬