As the title states, what is the difference between \lnot
and \neg
? The output seems the same to me but I want to know if they are the exact same thing, both semantically and as code definition.
\documentclass[border=1pt]{standalone}
\begin{document}
\(\lnot a \, \neg a\)
\end{document}
Best Answer
For your disappointment, none. They are the same.
If you run
you'll get:
which shows that both are
\mathchar"23A
.In fact, in
plain.tex
one finds:The same appears for other symbols as well:
My guess for the reason of this is that in different fields of applications these symbols get different names, so they have different names to make their utilization more intuitive.
In LaTeX, what happens is basically the same, but with a few more bells and whistles:
This can be found in
fontmath.ltx
(loaded bylatex.ltx
).