考虑以下由lualatex
TeX Live 2016 排版的 MWE:
\documentclass[paper=A4, parskip=half]{scrartcl}
%
% Packages
%
% Fonts
\usepackage{fontspec}
% Languages
\usepackage{polyglossia}
\setmainlanguage{english}
% Mathematics
\usepackage{mathtools}
\usepackage{amsthm}
\usepackage[math-style=TeX, bold-style=upright]{unicode-math}
\setmathfont{Latin Modern Math}
\mathtoolsset{mathic=true}
% Microtype
\usepackage{microtype}
%
% Document
%
\begin{document}
Let \(A\) and \(B\) be two sets. The set difference, denoted
\[
A \setminus B
\]
consists of all elements of \(A\) except those which are also elements
of \(B\).
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-engine: luatex
%%% TeX-master: t
%%% End:
相应的输出
不包括\setminus
符号。这是 Latin Modern 中的错误吗?例如,将数学字体更改为 XITS Math 即可解决此问题。
答案1
这不是一个错误,但是这个符号在你的字体中没有定义。
请参阅表格http://mirror.switch.ch/ftp/mirror/tex/macros/latex/contrib/unicode-math/unimath-symbols.pdf您会注意到(最左边一栏)拉丁现代语中没有 U+029F5 的符号。
如果您不介意仅更改一个符号的字体,您可以执行以下操作:
% arara: lualatex
\documentclass[parskip=half]{scrartcl}
\usepackage{fontspec}
\usepackage[math-style=TeX, bold-style=upright]{unicode-math}
\setmathfont{Latin Modern Math}
\setmathfont[range=\setminus]{XITS Math}
\begin{document}
Let \(A\) and \(B\) be two sets. The set difference, denoted
\[
A \setminus B
\]
consists of all elements of \(A\) except those which are also elements
of \(B\).
\end{document}