iosMath
iosMath copied to clipboard
linebreak inside \text{}
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
You have to use the \\ command. I noticed that when you use storyboards you can simply type \\, while if you type in a file, then you have to use \\\\. From your code, I don't know if I'm the only one, but I noticed that when you write latex in your files, you always use two backslashes before each command.
@marybnq Thanks for that, I was wondering why none of my new line commands were working..