[Tex/LaTex] Writing the dimension of a variable in latex


I am trying to write the information about the dimension of a vector like this

$M \epsilon R^N$

In the paper, they write it nicely, it looks nice. However, I am not sure what I am doing wrong, but it doesn't look good. Suggestions?

Best Answer

I think you want to edit the style of fonts and symbols, but unless you give graphical details of what you want to achieve it is difficult to do it. The symbol for "belongs to" is obtained with \in. Then you can play with \mathcal if you want stylized R:

$M \in \mathcal{R}^N$

This looks like:

enter image description here