prev  ( testsuite > Topics > LineBreak > rec3-linebreaking-01  )  next

Alternatives: (mml file)  (full) (simple) (plain) (form) (slideshow)
File:Topics/LineBreak/rec3-linebreaking-01
CVS-ID:
Author:MathML3
Description:MathML3 specification example

Sample Rendering:

Created by: MathML REC

Your browser's rendering:

f ( x ) = ( x + 1 ) 4 = x 4 + 4 x 3 + 6 x 2 + 4 x + 1

Source Code:

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">

 <mrow>
  <mrow>  <mi>f</mi> <mo>&#x2061;</mo> <mo>(</mo> <mi>x</mi> <mo>)</mo>  </mrow>

  <mo id="eq1-equals">=</mo>
  <mrow>
   <msup>
    <mrow> <mo>(</mo> <mrow> <mi>x</mi> <mo>+</mo> <mn>1</mn> </mrow> <mo>)</mo> </mrow>
    <mn>4</mn>
   </msup>
   <mo linebreak="newline" linebreakstyle="before" indentalign="id" indenttarget="eq1-equals">=</mo>
   <mrow>
    <msup> <mi>x</mi> <mn>4</mn> </msup>
    <mo id="eq1-plus">+</mo>
    <mrow>  <mn>4</mn> <mo>&#x2062;</mo> <msup> <mi>x</mi> <mn>3</mn> </msup>  </mrow>
    <mo>+</mo>
    <mrow>  <mn>6</mn> <mo>&#x2062;</mo> <msup> <mi>x</mi> <mn>2</mn> </msup>  </mrow>

    <mo linebreak="newline" linebreakstyle="before" indentalignlast="id" indenttarget="eq1-plus">+</mo>
    <mrow>  <mn>4</mn> <mo>&#x2062;</mo> <mi>x</mi>  </mrow>
    <mo>+</mo>
    <mn>1</mn>
   </mrow>
  </mrow>
 </mrow>

</math>