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.

The symbol for modularly congruent is ≡, which can be produced with \equiv.

For instance,

18 ≡ 0 (mod 9)

What is the symbol for not modularly congruent, and how do I represent it in TeX?

I have perused some references including http://web.ift.uib.no/Teori/KURS/WRK/TeX/symALL.html and have not found it.

share|improve this question
2  
Is there something wrong with \not\equiv? –  Alan Munn Jan 30 '12 at 3:07
    
That looks right. Thank you! In general, does \not negate the following operation? –  David Faux Jan 30 '12 at 3:12
    
Yes, \not is defined zero width relation character in TeX so it will always be on top of the following character. –  Alan Munn Jan 30 '12 at 3:22

1 Answer 1

up vote 18 down vote accepted

Negation of symbols in LaTeX is typically achieved prepending it with \not. For example

Negating symbols

\documentclass{article}
\begin{document}
$18 \equiv 0\ (\textrm{mod}\ 9) \not\equiv 2\ (\textrm{mod}\ 9)$
\end{document}

For more elaborate, larger or lengthy symbols, you can use the cancel package. In those instances \not may not provide a sufficiently-centred negation. The centernot package also provides a centred \not for symbols with larger horizontal dimension.

Other symbol-lookup techniques are described in How to look up a symbol?

share|improve this answer
    
There's also the centernot package, which provides a \centernot command that measures its argument and centres the not correctly. –  Alan Munn Jan 30 '12 at 3:39
1  
Also instead of writing (\textrm{mod}\ 9), you can just write \pmod{9}. –  BlackSheep Jan 19 at 4:12

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.