Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

\geqslant Undefined control sequence in Latex

Tags:

latex

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!

like image 355
Tim Avatar asked Apr 08 '10 01:04

Tim


People also ask

How do you fix an undefined control sequence in LaTeX?

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 .

How do you remove an undefined control sequence?

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.

How do you define a control sequence in LaTeX?

Control sequence is (typically, roughly speaking) a sequence of letters with preceded backslash. This is TeX terminology. Control sequence has assigned its meaning.


1 Answers

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.

like image 179
Etaoin Avatar answered Oct 17 '22 19:10

Etaoin