Is it possible to get a \neq
but with a vertical bar instead of a slanted one? There are inequality operators like AMS's \gvertneqq
that feature this kind of "not equal" but not without mixing it with other signs.
\documentclass[a5paper]{article}
\usepackage{amssymb}
\usepackage{amsmath}
\begin{document}
\begin{align*}
a&\gvertneqq b\\
C&\neq \varnothing
\end{align*}
\end{document}
So what I basically would like to have is the isolated symbol under the > in the \gvertneqq
above. Particularly because I don't like the different slopes of the slashes in the second line and "≠∅" is quite a common combination.
Best Answer
Equal sign with vertical line
The vertical line
|
is a little tall for my taste. The following definition for\vneq
decreases the total height of the vertical line to match the total height of\neq
. Resizing vertical height will not change the line thickness in horizontal direction.\vneqxscale
and\vneqyscale
. The default is1
.\mathpalette
allows the symbol to resize automatically.Example file:
The height can be further decreased, e.g.
Result for
mathabx
:Result for
txfonts
:Result for
MnSymbol
:Here the vertical line is too thick and the horizontal resizing needs shrinking:
Result for
MnSymbol
and\vneqxscale
=.67
:Alternative to
varnothing
Instead of changing
\neq
, the empty set symbol\varnothing
could be constructed using\not
to match the slope of the slanted vertical lines. However,\circ
is too small and\bigcirc
too big. Therefore this method is shown fortxfonts
that provides\medcirc
andMnSymbol
with\medcircle
.Result for
txfonts
:Result for
MnSymbol
: