Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm using the amsmath package, and i want to put in a sentence, the not similar binary operator. I tried this:

... bla bla $ a \nsim b $ bla bla ...

I get the error: "Undefined control sequence". By the way, if i put \sim it works, but i want negate it.

share|improve this question
4  
Welcome to TeX.SX! You need \usepackage{amssymb}, which isn't automatically loaded by amsmath. –  egreg Mar 10 at 17:59
    
Hey thank you. Oh sorry i don't know this thing, i thought that all i need is inside amsmath. Noob question :) –  frenk Mar 10 at 18:09
    
See What does each AMS package do? –  Werner Mar 10 at 18:18
1  
Please consider accepting answers that you consider best solved your problems. –  Gonzalo Medina Jul 22 at 16:53

1 Answer 1

up vote 5 down vote accepted

The command \nsim is listed in table 69 of the Comprehensive LaTeX Symbol List, under the caption

AMS Negated Binary Relations

In section 1.1 of the document, we find

“AMS” means to use the AMS packages, viz. amssymb and/or amsmath.

Actually most of the symbols with that tag require amssymb and this is the case for \nsim.

enter image description here

Note that the result of \not\sim is rather different, so the final answer is

\documentclass{article}
\usepackage{amssymb}

\begin{document}
... bla bla bla $a \nsim b$ bla bls ...

\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.