Formula alignment

Dear MathML group,



I’m just wandering how to align formulas given a symbol. For example,

__y=x+1

x+1=y

(where the _ are spaces)



Reading the MathML specification, I came up with

<mtable>

  <mtd>

    <mi>y</mi>

    <malignmark/>

    <mo> = </mo>

   <mi>x</mi>

    <mo>+</mo>

    <mn>1</mn>

  </mtd>

 <mtd>

    <mi>x</mi>

    <mo>+</mo>

    <mn>1</mn>

    <malignmark/>

    <mo> = </mo>

    <mi>y</mi>

  </mtd>

</mtable>



Do you think that this is the best way to express that?



Another question is whether the malignmark must appear always inside a
table (mtable) or can be used also combined with <mspace
linebreak="newline"/>. For example, is the following a valid alternative?

  <mrow>

    <mi>y</mi>

    <malignmark/>

    <mo> = </mo>

   <mi>x</mi>

    <mo>+</mo>

    <mn>1</mn>

    <mspace linebreak="newline"/>

    <mi>x</mi>

    <mo>+</mo>

    <mn>1</mn>

    <malignmark/>

    <mo> = </mo>

    <mi>y</mi>

  </mrow>





Dani

Received on Friday, 18 December 2015 16:57:03 UTC