When I compile the following latex code:
\begin{align}
f_{m}(x) = c_{1,m} \times I(x_{i}^{m} \geqslant t_{m} ) + c_{2,m} \times I(x_{i}^{m} < t_{m} ),
\end{align}
I always get an error:
! Undefined control sequence.
<argument> ..._{1,m} \times I(x_{i}^{m} \geqslant
t_{m} ) + c_{2,m} \times I...
l.124 \end{align}
When I replace \geqslant with >=, it is okay.
I already include the amsmath package. What would cause the problem?
Thanks and regards!
The issue is that when LaTeX sees a backslash \ , it interprets what follows as a command. Here, there is no such command as \Users, so you will get an Undefined Control Sequence error. To avoid this, when writing text you should write a backslash as \backslash .
But here, there is no command as \Users and therefore, the compiler will throw Undefined Control Sequence error. To avoid this, you need to write a backslash as \backslash. For writing URLs and long file paths, you can use the url package instead of writing \backslash every time.
Control sequence is (typically, roughly speaking) a sequence of letters with preceded backslash. This is TeX terminology. Control sequence has assigned its meaning.
That command isn't defined in the amsmath package, but rather the amssymb package -- put \usepackage{amssymb}
in your preamble and you should be fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With