4

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.

Curious behaviour of not

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

  • 1
    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
  • 1
    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
  • 1
    Always use \notin, \neq, and \nless to avoid these problems. – Henri Menke May 9 '18 at 7:55
2

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}

\usepackage{unicode-math}
\NewNegationCommand{∈}{\notin}

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

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.