mathml2latex icon indicating copy to clipboard operation
mathml2latex copied to clipboard

Invalid conversion with \limits

Open jelleroorda opened this issue 4 years ago • 2 comments

Hello, thanks for this package.

I am using your package to convert the following MathML to TeX:

<math xmlns="http://www.w3.org/1998/Math/MathML"> <mstyle displaystyle="true"> <msub> <mover> <mi>w</mi> <mo>→</mo> </mover> <mi>d</mi> </msub> </mstyle> </math>

The package converts this to:

w\limits^{\rightarrow }_{d}

Which apparently is incorrect TeX, since after I used the MathJax library with the produced TeX they give the error message '\limits is only allowed on operators'. They are suggesting the following options:

{\vec w}_d 
\overset{\rightarrow}{w}_d 
\overrightarrow{w}_{d}

Then again, I am not a MathML or LaTeX professional, so I could be wrong.

jelleroorda avatar May 19 '21 12:05 jelleroorda

It's been a while since i write this library. I almost forget everything about MathML and LaTex. To be honest, I am not good at math either. To answer your question, I think i need to learn them again.

mika-cn avatar May 31 '21 09:05 mika-cn

Thanks for your honest answer Mika! I’m not proficient enough myself with both to contribute a solution for this I’m afraid. If you are able to fix this that would be great, if not, no worries. I definitely understand that it’s a big time investment.

jelleroorda avatar Jun 01 '21 07:06 jelleroorda