Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid conversion with \limits #9

Open
jelleroorda opened this issue May 19, 2021 · 2 comments
Open

Invalid conversion with \limits #9

jelleroorda opened this issue May 19, 2021 · 2 comments

Comments

@jelleroorda
Copy link

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.

@mika-cn
Copy link
Owner

mika-cn commented May 31, 2021

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.

@jelleroorda
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants