prev next
File: Presentation/TokenElements/mspace/mspacestruts2.xml (mml file)
Author: Robert Miner and Jeff Schaefer, Geometry Technologies
Description: This example tests the <mspace> element in cases where one dimension is 0. The <mfrac> element is used to make the spaces visible.
Sample Rendering:
Created by: webeq

Your browser's rendering:

x y 2 + 2 x y + x y 2


Source Code:

    <math> 
      <mfrac> 
        <mrow> 
          <mi>x</mi> 
          <mspace width="1cm"/> 
          <mi>y</mi> 
        </mrow> 
        <mn>2</mn> 
      </mfrac> 
      <mo>+</mo> 
      <mfrac> 
        <mn>2</mn> 
        <mrow> 
          <mi>x</mi> 
          <mspace height="1cm"/> 
          <mi>y</mi> 
        </mrow> 
      </mfrac> 
      <mo>+</mo> 
      <mfrac> 
        <mrow> 
          <mi>x</mi> 
          <mspace depth="1cm"/> 
          <mi>y</mi> 
        </mrow> 
        <mn>2</mn> 
      </mfrac> 
    </math>
  

Test Suite Home