prev next
File: Presentation/GeneralLayout/mphantom/mphantomSinheritance5.xml (mml file)
Author: Robert Miner and Jeff Schaefer, Geometry Technologies
Description: This example tests that scriptlevel and fontweight style attributes are properly inherited by the children of an <mphantom>.
Sample Rendering:
Created by: webeq

Your browser's rendering:

A A A A + A A A A A A + A A


Source Code:

    <math> 
      <mstyle background='Blue'> 
        <mi>A</mi> 
        <mstyle scriptlevel='2'> 
          <mphantom> 
            <mi>A</mi> 
          </mphantom> 
        </mstyle> 
        <mi>A</mi> 
        <mstyle fontweight='bold'> 
          <mphantom> 
            <mi>A</mi> 
            <mo>+</mo> 
            <mi>A</mi> 
          </mphantom> 
          <mi>A</mi> 
        </mstyle> 
      </mstyle> 
      <mi>A</mi> 
      <mstyle scriptlevel='2'> 
        <mi>A</mi> 
      </mstyle> 
      <mi>A</mi> 
      <mstyle fontweight='bold'> 
        <mi>A</mi> 
        <mo>+</mo> 
        <mi>A</mi> 
        <mi>A</mi> 
      </mstyle> 
    </math>
  

Test Suite Home