I'm using the unicode-math package with LuaLaTeX (TeXlive 2017). I'm trying to set the math font for the \setminus character as in this answer, because it doesn't exist in the Latin Modern math font.
With the following MWE:
\documentclass{article}
\usepackage{unicode-math}
\setmathfont{Latin Modern Math}
\begin{document}
\[ \pi \in \mathbb{R} \setminus \mathbb{Q} \]
\end{document}
I get this result:
As expected, the \setminus character doesn't appear, and I have the Latin Modern font.
But now if I try this:
\documentclass{article}
\usepackage{unicode-math}
\setmathfont{Latin Modern Math}
\setmathfont[range=\setminus]{XITS Math} % This changed
\begin{document}
\[ \pi \in \mathbb{R} \setminus \mathbb{Q} \]
\end{document}
I get this:
The \setminus character now appears, but the mathbb font changed! And if I try with random letters (or the \pi character above), I see that the "normal" font remains Latin Modern. What happened?



unicode-mathversion 0.8j, released 2018-01-07. – egreg Jan 10 '18 at 12:07