迁移到 LinuxMint 后,XeLaTeX 的部分功能无法正常工作

迁移到 LinuxMint 后,XeLaTeX 的部分功能无法正常工作

我的一个头文件,我使用了命令\setmathfont[]{XITS Math},当我尝试像往常一样使用编译文档时xelatex,我收到以下错误:

! Undefined control sequence.
l.87 \setmathsfont
                  []{XITS Math}

另外,由于某种原因,当我注释掉该行时,XeLaTeX 似乎挂起了。

这可能相关也可能不相关:

$ xelatex --version
XeTeX 3.1415926-2.4-0.9998 (TeX Live 2012/Debian)
kpathsea version 6.1.0
Copyright 2012 SIL International and Jonathan Kew.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 49.1 [with modifications for XeTeX]
Compiled with zlib version 1.2.7; using 1.2.7
Compiled with FreeType2 version 2.4.9; using 2.4.9
Compiled with fontconfig version 2.9.0; using 2.9.0
Compiled with libpng version 1.2.49; using 1.2.49
Compiled with poppler version 0.18.4

答案1

你有一个打字错误,你写道\setmathfont...但是日志文件清楚地显示你输入了\setmathsfont标记多余的“s”。

相关内容