roniemartinez / latex2mathml

Pure Python library for LaTeX to MathML conversion
MIT License
183 stars 25 forks source link

\bar doesn't work as expected #52

Closed DenisSalem closed 5 years ago

DenisSalem commented 5 years ago

Hello there, I'm using the version 2.6.7

I try to use \bar to write complex number related equation.

\bar{z_1} = z_2

should produce something like

<math>
<mrow>
    <mover accent="true">
        <mrow>
            <msub>
                <mi>z</mi>
                <mn>1</mn>
            </msub>
        </mrow>
        <mo>&macr;</mo>
    </mover>
    <mo>=</mo>
    <msub>
        <mi>z</mi>
        <mn>2</mn>
    </msub>
</mrow>
</math>

instead I got

<math>
    <mrow>
        <mi>&#x00304;</mi>
        <mrow>
             <msub>
                 <mi>z</mi>
                 <mn>1</mn>
             </msub>
        </mrow>
        <mo>&#x0003D;</mo>
        <msub>
            <mi>z</mi>
            <mn>2</mn>
        </msub>
    </mrow>
</math>

Is there something I'm doing wrong?

roniemartinez commented 5 years ago

Hi @DenisSalem

The \bar is not implemented yet. It only uses the \bar inside the unimathsymbols.txt. I will look into it.

DenisSalem commented 5 years ago

Thank you :)

roniemartinez commented 5 years ago

@DenisSalem I will be delaying this for a bit (and other issues) as I will be very busy for the next 2 weeks. I will be teaching high school and college students. Thanks!

DenisSalem commented 5 years ago