How can I write a pretty \not\varepsilon? I want something like \notin, since I use \varepsilon as a relation symbol like \in.
Asked
Active
Viewed 7,888 times
11
3 Answers
19
Since \varepsilon has a smaller width than =, the alignment with \not is not perfect. \not is optimized for =. Package centernot helps to center the \not a little better:
\documentclass{article}
\usepackage{centernot}
\begin{document}
\[ a \not\mathrel{\varepsilon} b \]
\[ a \centernot\varepsilon b \]
\end{document}
Heiko Oberdiek
- 271,626
5
You can just juggle with the spacing a bit I'm not sure it classifies as pretty though:

\documentclass{article}
\def\noteps{\mathrel{\!\not\mathrel{\,\varepsilon\!}\,}}
\begin{document}
$a \notin b \noteps c$
\end{document}
David Carlisle
- 757,742
2
I'm nor sure if it is pretty, but...
\documentclass{article}
\begin{document}
\def\nwe{\mathrel{\not\mskip-\thinmuskip\varepsilon}}
$a \nwe A$
\end{document}

Heiko Oberdiek
- 271,626
Przemysław Scherwentke
- 37,268

\notlooks bad on wider symbols – Werner May 31 '13 at 21:39