WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Discussion options

You must be logged in to vote

找到解决方法了!

  1. 参考:LaTeX 排版国标样式的数学符号 - 粗体
    传统latex只能用正粗体表示向量和矩阵,在unicode-math包下,可以设置 bold-style=ISO,并提供 \symbf 命令用于粗斜体的数学符号。
    只要把原先的 \boldsymbol 改为\symbf 就好了。
  2. 另外,导入unicode-math包,会和文档原有的‘mathtools’包的命令起冲突,在latex主页面开头出现警告。
    参考 LaTeX mathtools、unicode-math包导入冲突,导致下括号显示错误
    只有依次导入下面的包,并给unicode-math设置相关限制条件,就不会在编译时弹出冲突警告了。
\usepackage{amsmath}    % AMS数学字体、环境需要
\usepackage{mathtools}  % align需要
\usepackage[mathrm=sym,warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math}
\unimathsetup{
  math-style = ISO,
  bold-style = ISO,
}
\setmathfont{XITSMath-Regular.otf}

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by fky2015
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants