I am doing my first LaTeX work using TeXstudios and I'm having trouble with an Undefined control sequence.

When I've checked solutions on google it appears as this is caused by typos in the different commands.

However, I have used the TeXstudios implemented menus to generate the codes so it shouldn't be any problem with that.

The code I'm having trouble with is

```
$x\in\mathbb{R}^{n}$
```

which I intend to become x belonging to the real numbers with n as an exponent.

I get the error

```
Undefined control sequence $x\in\mathbb
```

## Best Answer

Load the package

to enable the macro

`\mathbb`

.Loading the

`amsmath`

package too is always a good idea:Here you'll find some more information.