prev next
File: Presentation/GeneralLayout/msqrt-mroot/mrootSfonts3.xml (mml file)
Author: Robert Miner and Jeff Schaefer, Geometry Technologies
Description: This example test that font attributes inherit properly from <mstyle> to <mroot>.
Sample Rendering:
Created by: webeq

Your browser's rendering:

x - 3 x - 3 3 x x - 3 3 x


Source Code:

    <math> 
      <mrow> 
        <mfrac> 
          <mstyle fontfamily='Helvetica'> 
            <mroot> 
              <mrow> 
                <mi>x</mi> 
                <mo>-</mo> 
                <mn>3</mn> 
              </mrow> 
              <mrow> 
                <mi>x</mi> 
                <mo>-</mo> 
                <mn>3</mn> 
              </mrow> 
            </mroot> 
          </mstyle> 
          <mstyle fontweight='bold'> 
            <mroot> 
              <mrow> 
                <mn>3</mn> 
                <mi>x</mi> 
              </mrow> 
              <mrow> 
                <mi>x</mi> 
                <mo>-</mo> 
                <mn>3</mn> 
              </mrow> 
            </mroot> 
          </mstyle> 
        </mfrac> 
        <mroot> 
          <mn>3</mn> 
          <mi>x</mi> 
        </mroot> 
      </mrow> 
    </math>
  

Test Suite Home