iosMath icon indicating copy to clipboard operation
iosMath copied to clipboard

linebreak inside \text{}

Open deepakverma4 opened this issue 7 years ago • 2 comments

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

deepakverma4 avatar Jul 17 '18 08:07 deepakverma4

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 avatar Aug 18 '19 08:08 marybnq

@marybnq Thanks for that, I was wondering why none of my new line commands were working..

kenny-numerade avatar Apr 17 '20 18:04 kenny-numerade