W3C home > Mailing lists > Public > www-math@w3.org > December 2015

Formula alignment

From: Daniel Marques <dani@wiris.com>
Date: Fri, 18 Dec 2015 17:56:40 +0100
Message-ID: <1cfaa2ad608dfeb76af5cb0ce34d19e6@mail.gmail.com>
To: www-math@w3.org
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

This archive was generated by hypermail 2.3.1 : Friday, 18 December 2015 16:57:04 UTC