In the following example, the ∉ symbol does not look good.
\documentclass{article}
\usepackage{unicode-math}
\setmainfont{Latin Modern Roman}
\setmathfont{Latin Modern Math}
\begin{document}
This does not show: $\notin$ \\
This does not look good: $\not\in$
\end{document}
\not\in
works when not loading unicode-math
, but unicode-math
somehow prevents it from working (?). The Unicode character 0x2209
(\notin
) does not seem to be included in the Latin Modern Math font. I know that I can load the Unicode character from another font, but I just want the output to look like \not\in
in Computer Modern.
edit: To clarify, I just want the output to look like \not\in
without using unicode-math
. I want to use unicode-math
for reasons not visible in this example.
Best Answer
After last Khaled's comment, here's something that seems to work
Then
will work (although the placement doesn't seem to be optimal).
A possible improvement is to say
that pushes the slash slightly to the right, so that the upper end is lined up with the terminators of the
\in
symbol.Note: this definitely doesn't work with XITS Math or Asana Math, which, however, have the proper symbol.
UPDATE
As of January 2013, the problem seems to be solved; here's the minimal example:
Both LuaLaTeX and XeLaTeX give the correct result.
FURTHER UPDATES
The code was broken again, but version 0.8j of
unicode-math
seems to have fixed the issues.