<?xml version="1.0" encoding="us-ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
      "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>MathML Test : mfrac</title>
  <meta http-equiv="content-type" content="text/html; charset=us-ascii" />
  <meta name="generator" content="Amaya, see http://www.w3.org/Amaya/" />
  <meta name="author" content="Frederic WANG" />
</head>
<body>
<p><a href="index.xml#presentation_elements">Back to home</a></p>

<h1>MathML Test : mfrac</h1>

<p>This test displays <a
href="http://www.w3.org/TR/2003/REC-MathML2-20031021/chapter3.html#presm.mfrac">mfrac
element</a> with the attributes <code>linethickness</code>,
<code>numalign</code>, <code>denomalign</code> and <code>bevelled</code>. The
default values should respectively be 1, center, center and false.</p>
<ol>
  <li>check the default behavior with no attribute.</li>
  <li>check for each attribute the behavior with non-default values.</li>
</ol>
<ul>
  <li>no attribute : <math xmlns="http://www.w3.org/1998/Math/MathML">
      <mfrac>
        <mtext>numerator</mtext>
        <mtext>denominator</mtext>
      </mfrac>
    </math></li>
  <li><code>linethickness="0"</code> : [<math
    xmlns="http://www.w3.org/1998/Math/MathML">
      <mfrac linethickness="0">
        <mtext>numerator</mtext>
        <mtext>denominator</mtext>
      </mfrac>
    </math> ]</li>
  <li><code>numalign="left"</code> : <math
    xmlns="http://www.w3.org/1998/Math/MathML">
      <mfrac numalign="left">
        <mtext>num</mtext>
        <mtext>denominator</mtext>
      </mfrac>
    </math> ; <code>numalign="right"</code> :<math
    xmlns="http://www.w3.org/1998/Math/MathML">
      <mfrac numalign="right">
        <mtext>num</mtext>
        <mtext>denominator</mtext>
      </mfrac>
    </math></li>
  <li><code>denomalign="left"</code> : <math
    xmlns="http://www.w3.org/1998/Math/MathML">
      <mfrac denomalign="left">
        <mtext>numerator</mtext>
        <mtext>denom</mtext>
      </mfrac>
    </math> ; <code>denomalign="right"</code> :<math
    xmlns="http://www.w3.org/1998/Math/MathML">
      <mfrac denomalign="right">
        <mtext>numerator</mtext>
        <mtext>denom</mtext>
      </mfrac>
    </math></li>
  <li><code>bevelled="true" : </code>[<math
    xmlns="http://www.w3.org/1998/Math/MathML">
      <mfrac  bevelled="true">
        <mtext>numerator</mtext>
        <mtext>denominator</mtext>
      </mfrac>
    </math> ]</li>
</ul>

<p>Some test examples with several mfrac elements :</p>
<ul>
  <li><math xmlns="http://www.w3.org/1998/Math/MathML">
      <mrow>
        <mfrac  bevelled="true">
          <mfrac>
            <mrow>
              <mi>c</mi>
              <mo>&#x2212;</mo>
              <mi>a</mi>
            </mrow>
            <mrow>
              <mi>b</mi>
              <mo>&#x2212;</mo>
              <mi>a</mi>
            </mrow>
          </mfrac>
          <mfrac>
            <mrow>
              <mi>c</mi>
              <mo>&#x2212;</mo>
              <mi>d</mi>
            </mrow>
            <mrow>
              <mi>b</mi>
              <mo>&#x2212;</mo>
              <mi>d</mi>
            </mrow>
          </mfrac>
        </mfrac>
        <mo>&#x2208;</mo>
        <mi>&#x211d;</mi>
      </mrow>
    </math></li>
  <li><math xmlns="http://www.w3.org/1998/Math/MathML">
      <mfenced>
        <mfrac linethickness="0">
          <mi>p</mi>
          <mi>n</mi>
        </mfrac>
      </mfenced>
      <mo>=</mo>
      <mfrac>
        <mi>n</mi>
        <mi>p</mi>
      </mfrac>
      <mfenced>
        <mfrac linethickness="0">
          <mrow>
            <mi>n</mi>
            <mo>&#x2212;</mo>
            <mn>1</mn>
          </mrow>
          <mrow>
            <mi>p</mi>
            <mo>&#x2212;</mo>
            <mn>1</mn>
          </mrow>
        </mfrac>
      </mfenced>
    </math></li>
  <li><math xmlns="http://www.w3.org/1998/Math/MathML">
      <mfrac>
        <mrow>
          <mfrac>
            <mn>1</mn>
            <mn>2</mn>
          </mfrac>
          <mo>+</mo>
          <mfrac>
            <mi>u</mi>
            <mn>3</mn>
          </mfrac>
        </mrow>
        <mrow>
          <mi>x</mi>
          <mo>&#x2212;</mo>
          <mi>y</mi>
        </mrow>
      </mfrac>
    </math></li>
</ul>
</body>
</html>
