kostub / iosMath

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

space problem with /text #158

Open nonsense0biubiu opened 3 years ago

nonsense0biubiu commented 3 years ago

When I render this latex like this "\text { Simplify the expression. }" directly. the result will remove all space symbol.

But I got a soluation by add [self skipSpaces] before handle the next char

Is there a better solution?

musakokcen commented 3 years ago

You should add a space after "text". This works;

.replacingOccurrences(of: " ", with: "\text ")

Deepaky2k4 commented 1 year ago

Can you please help that how we can fix space issue with text

You should add a space after "text". This works;

.replacingOccurrences(of: " ", with: "\text ")