kostub / iosMath

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

"1 \\ { 2 \\ 3 }" outputs "Mismatched Braces" #100

Open verybadcat opened 6 years ago

verybadcat commented 6 years ago

Input "1 \\ { 2 \\ 3 }". Output is "Mismatched braces". I'm asking because of https://github.com/verybadcat/CSharpMath, which is a port of this repository; we have the same bug there.

See also https://stackoverflow.com/questions/50997777/the-rules-of-latex-mathjax-for-someone-implementing-it

Happypig375 commented 6 years ago

Request edit: should be "1 \\\\ { 2 \\\\ 3 }" (Each two backslashes are replaced by one because of Markdown itself's escape sequence) Edit: Done!

Kamik423 commented 6 years ago

Might be related to #91

deepakverma4 commented 6 years ago

@Kamik423 can you please help me out

how can i insert linebreak inside \text{}

my code is : label.latex = @"\\text{\(Highest degree=a \\ \newline \linebreak power \ of\ x^2\ is\ 2 \\ sum=6= a+2 \\ therefore\ a= 4\)}";

And none of the \\ , \newline, \linebreak works

Kamik423 commented 6 years ago

Yes, that is exactly the described issue. There currently is no solution.