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.

  • What does it show like? – Werner Feb 7 at 0:30
  • 5
    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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.