prev next
File: Presentation/GeneralLayout/msqrt-mroot/mrootSscriptlevel4.xml (mml file)
Author: Robert Miner and Jeff Schaefer, Geometry Technologies
Description: This example tests that the <mroot> increments the scriptlevel by 2 and sets displaystyle to false in the index.
Sample Rendering:
Created by: webeq

Your browser's rendering:

x - x 3 x 3 + x - 3 x 3 + x - 3 x 3 + x 3


Source Code:

    <math> 
      <mstyle displaystyle='true'> 
        <mroot> 
          <mrow> 
            <mi>x</mi> 
            <mo>-</mo> 
            <mfrac> 
              <mi>x</mi> 
              <mn>3</mn> 
            </mfrac> 
          </mrow> 
          <mfrac> 
            <mi>x</mi> 
            <mn>3</mn> 
          </mfrac> 
        </mroot> 
      </mstyle> 
      <mo>+</mo> 
      <mstyle scriptlevel='2'> 
        <mroot> 
          <mrow> 
            <mi>x</mi> 
            <mo>-</mo> 
            <mn>3</mn> 
          </mrow> 
          <mfrac> 
            <mi>x</mi> 
            <mn>3</mn> 
          </mfrac> 
        </mroot> 
      </mstyle> 
      <mo>+</mo> 
      <mroot> 
        <mrow> 
          <mi>x</mi> 
          <mo>-</mo> 
          <mn>3</mn> 
        </mrow> 
        <mfrac> 
          <mi>x</mi> 
          <mn>3</mn> 
        </mfrac> 
      </mroot> 
      <mo>+</mo> 
      <mstyle scriptlevel='2' displaystyle='true'> 
        <mfrac> 
          <mi>x</mi> 
          <mn>3</mn> 
        </mfrac> 
      </mstyle> 
    </math>
  

Test Suite Home