# Unicode-Math and \not

I am using unicode-math to typeset equations. Since I am using a non-standard keyboard layout, I prefer to enter most math symbols with their unicode representation. However, the the \not operator sometimes produces a 6 as output. Consider the following MWE.

\documentclass{standalone}

\usepackage{unicode-math}

\begin{document}
$$\not ∈ \; \not\in \quad ≠ \; \not = \; \neq \quad ≮ \; \not<$$
\end{document}


Which produces—using XeLaTeX—the following output.

Is this a bug of the unicode-math package or is it because of some encoding problems?

• On texlive 2018, I don't get a 6, but the slash is poorly positioned on the first symbol. – Andrew Swann May 9 '18 at 7:35
• The 6 was due to a bug in unicode-math which has been resolved. But if you want good symbols you should better use the commands as then some extra processing is involved which maps them to the correct glyphs. See github.com/wspr/unicode-math/issues/363. – Ulrike Fischer May 9 '18 at 7:40
• Always use \notin, \neq, and \nless to avoid these problems. – Henri Menke May 9 '18 at 7:55

I think you have an old version of unicode-math (the “6 problem” has been solved months ago). However, even for the last version, \not ∈ will not yield the expected result; help unicode-math to:
\documentclass{article}
$$\not ∈ \; \not\in \quad ≠ \; \not = \; \neq \quad ≮ \; \not<$$