Ask Your Question
0

Up side down question mark at beginning when import MathML [closed]

asked 2014-03-17 05:11:05 +0100

enchantertest gravatar image

When I try to import mathml file like this:

<?xml version="1.0" encoding="UTF-8"?>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mtable class="m-equation-square" displaystyle="true" style="display: block; margin-top: 1.0em; margin-bottom: 2.0em">
    <mtr>
        <mtd>
            <mspace width="6.0em" />
        </mtd>
        <mtd columnalign="left">
            <msup>
                <mi>e</mi>
                <mrow>
                    <mi>i</mi>
                    <mi>&#x003C0;</mi>
                </mrow>
            </msup>
            <mo>=</mo>
            <mo>-</mo>
            <mn>1</mn>
        </mtd>
    </mtr>
</mtable>
</math>

I always get a "?" at the beginning of the formula (Up side down).

I think it is because it can interpret the mspace properly.

When I open the LibreOffice Math, I found it has empty entry of the first element in the MAXTRIX:

matrix {# {italic "e"^{italic "i" italic "π"} = - italic "1"}}

How could I fix this issue?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-02-25 00:15:55.957710

1 Answer

Sort by » oldest newest most voted
0

answered 2014-06-09 19:20:23 +0100

Regina gravatar image

It seems, that the mspace element is ignored on import. Therefore the intended rendering effect will not be possible. To get an invisible element at this matrix position (actually an empty string), you can use

<mtd> <mtext /> </mtd>

If you really need a space of 6em, you can use

<mtd> <mphantom> <mtext >mmmmmm </mtext> </mphantom> </mtd>
edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-03-17 05:11:05 +0100

Seen: 566 times

Last updated: Jun 09 '14