I want to negate the symbol whose code is \models
(this would be specific to Formal Logic). How can I do that? I tried a number of combination, but didn't find how this could be done. I tried \neqmodels
, \nemodels
, \notmodels
, \nmodels
but all of them are wrong.
Is there a general way to negate symbols?
Best Answer
There are a number of ways to achieve the negation of a symbol:
Follow the guidelines in How to look up a symbol or identify a math symbol or character? to see whether such a symbol already exists.
This is usually the best course of action, since the symbol would have been constructed to match certain specification (say, placement and height/depth of negation symbol). If such a symbol is only available in a different font, then consider including only that symbol by following the instructions in Importing a Single Symbol From a Different Font.
For a symbol
\mysymbol
, try\not\mysymbol
.\not
is a zero-width math relation that is set "on the right" of where it's called. As such, it visually overlaps the typical math relation/symbol. Not always perfect, but works in general.centernot
works well when symbols are somewhat wider than usual, yet you still want the regular\not
-like visual.The
cancel
package draws a diagonal line across a symbol to "cancel" it.Other methods include using graphics packages like
tikz
orpstricks
to draw rules in specific locations across a symbol/construction.