I want to write math equation in the text like y_i E {1 -1}. In LaTeX I am writing like this $y_i \in \left\{1, \textminus 1\right\}$. But its not showing as I want.
• You should just use - instead of \textminus. – Werner Feb 7 at 0:35
• It's also possible to set up your math font to use the same plus and minus signs as your text font. The spacing won’t be the same in text and math modes, because - is a hyphen. – Davislor Feb 7 at 0:50