prev  ( testsuite > Presentation > GeneralLayout > mfrac > mfracZcomp-22  )  next

Alternatives: (mml file)  (full) (simple) (plain) (form) (slideshow)
File:Presentation/GeneralLayout/mfrac/mfracZcomp-22
CVS-ID:
Author:Mackichan
Description:Fairly comprehensive test of many mfrac properties

Sample Rendering:

Created by: MathPlayer

Your browser's rendering:

Inline, styles auto, display and text  1 2 - 1 2 + 1.23456 7890 , the rendering should be script-size, normal-size and script-size in this example. Fraction lines should align vertically with the math axis.

Source Code:

<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mtext>Inline, styles auto, display and text </mtext>
  <mstyle displaystyle="false" scriptlevel="0">
    <mrow>
      <mfrac>
        <mn>1</mn>
        <mn>2</mn>
      </mfrac>
      <mo form="infix">-</mo>
      <mrow>
        <mstyle displaystyle="true" scriptlevel="0">
          <mfrac>
            <mn>1</mn>
            <mn>2</mn>
          </mfrac>
        </mstyle>
      </mrow>
      <mo form="infix">+</mo>
      <mrow>
        <mstyle displaystyle="false" scriptlevel="0">
          <mfrac>
            <mn>1.23456</mn>
            <mn>7890</mn>
          </mfrac>
        </mstyle>
      </mrow>
    </mrow>
  </mstyle>
  <mtext>, the rendering should be script-size, normal-size and script-size in this example. Fraction lines should align vertically with the math axis.</mtext>
</math>