ianharrigan / mathmlformula

Automatically exported from code.google.com/p/mathmlformula
1 stars 0 forks source link

LaTeX transcoding broken #30

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
From your homepage, in the demo I click <Ex 9> which inserts an equation in 
MathML, transcodes it to LaTeX, and generates a "view equation" at bottom.

LaTeX reads,

\[ \frac{2^{x^2 + 4 x + 4} + 4 x + 45 = 0}{2^{x^2 + 4 x + 4} + 4 x + 45 = 0} \]

MathML incorrectly encodes the dividend instance of "x^2 + 4 x + 4" as 
follows...notice the improper <mphantom> element.  The divisor instance of "x^2 
+ 4 x + 4" is completely hidden
                <msup>
                    <mi>x</mi>
                    <mn>2</mn>
                </msup>
                <mo>+</mo>
                <mphantom>
                    <mn>4</mn>
                    <mi>x</mi>
                </mphantom>
                <mo>+</mo>
                <mn>4</mn>
The view equation panel then incorrectly hides these phantom elements.

Also, when I click the "LaTeX>>MathML>>View Equation" button, I expect nothing 
to happen since the LaTeX and MathML supposedly contain the same equation.  
Instead, the meaning of the MathML looks very different from that of the LaTeX 
and the viewed equation changes dramatically.

Original issue reported on code.google.com by ionel.alexandru@gmail.com on 3 Feb 2011 at 10:53

GoogleCodeExporter commented 8 years ago

Original comment by ionel.alexandru@gmail.com on 22 Mar 2011 at 6:37