\documentclass{ctexbook}
\usepackage[slantfont,boldfont]{xeCJK}
\xeCJKsetup{CJKMath=true}
……
编译时显示出错,错误信息为
Package xeCJK: Sorry, but xeCJK/options does not have a key called
(xeCJK) `CJKMath'.
(xeCJK)
(xeCJK) The key `CJKMath' is being ignored.
使用的是TeX Live 2021发行版,编辑器为VSCode。
建议安装新版本
C:\Users\Administrator>tlmgr update --self --all --reinstall-forcibly-removed
TeX Live 2021 is frozen
and will no longer be routinely updated. This happens when a new
release is made, or will be made shortly.
If you're willing to help with pretesting a new release, and we hope
you are, please see https://tug.org/texlive/pretest.html.
For general status information about TeX Live, see its home page:
https://tug.org/texlive