0

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 acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.