kostub / iosMath

Beautiful math equation rendering on iOS and MacOS
MIT License
1.36k stars 234 forks source link

Math Jax text not wokring in iosMath #35

Open nagarajuios opened 7 years ago

nagarajuios commented 7 years ago

Hi I have a problem with MTMathUILabel , In my app maths questions are creating with math jax but i want to display questions with Letex. Can you please provide me some solution.

kostub commented 7 years ago

Can you please elaborate on your question or provide me an example of where it is not working?

Are you referring to the \\text command not working? If so, it is currently in progress. See #12.

nagarajuios commented 7 years ago

Am using MathJax generated code means maths equations are not displaying in MTMathUILabel

kostub commented 7 years ago

Can you please add the latex code that MathJax is generating? You do not need to use MathJax if you use MTMathUILabel.

AnZhg commented 7 years ago

@nagarajuios Just want to clarify the problem, are you saying MathJax generated Latex won't show (or won't show correctly) in MTMathUILabel? If so, would you like to post code snippet(s)?

nagarajuios commented 7 years ago

\begin{bmatrix} 1 &-1 &4 \ 0 &6 &7 \ 0 &0 &9 \end{bmatrix} matrix not showing simulator screen shot jan 21 2017 12 26 37 am

AnZhg commented 7 years ago

\ (back slash and a space) will give you a space, and I used this method in my own code. This can be used as a quick fix. But I'm not sure why & shows as amp;.

kostub commented 7 years ago

Are you sure the text says & and not &? A web view will display & as an &.

nagarajuios commented 7 years ago

Yes, Because mathjax supports in webview only.

kostub commented 7 years ago

iosMath expects the text to be formatted as proper LaTeX. & is not valid LaTeX and thus cannot be understood. Can you please provide an example of your code where you are setting up the bmatrix, which is displaying incorrectly?