11

How can I write a pretty \not\varepsilon? I want something like \notin, since I use \varepsilon as a relation symbol like \in.

Corentin
  • 9,981
Sumac
  • 213

3 Answers3

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}

Result

Heiko Oberdiek
  • 271,626
5

You can just juggle with the spacing a bit I'm not sure it classifies as pretty though:

enter image description here

\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}

Result

Heiko Oberdiek
  • 271,626