Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数学公式的字体问题 #406

Closed
Triumphal opened this issue Feb 22, 2023 · 3 comments
Closed

数学公式的字体问题 #406

Triumphal opened this issue Feb 22, 2023 · 3 comments

Comments

@Triumphal
Copy link

发现问题是在使用数学公式的时候,在使用黑板粗体\mathbb{R}指令表示实数集的时候,字体比较奇怪(见下图),可能是由于使用了XITS 字体库的原因

但是使用amssymb包直接使用\mathbb{}看上去比较合适(见下图)。

并且该模板中的数学公式中的字体似乎都比较偏粗体一点,实际的粗体的显示并不是那么的明显,不知道是设置的原因还是字体库就是这样。

  • 因此是否能够使用将数学公式中的字体使用amssymb中的,毕竟公式多的时候,使用amssymb包中的数学表示看上去比较清晰一点。

主要是公式美观上的考虑。

@mohuangrui
Copy link
Owner

使用 XITS 是为了和Word版本相近(许多人有此诉求)。
如果你想进行修改:


\setmathfont{XITSMath-Regular}[

开始注释,直到(包括)

然后在此后加入你需要的math字体package

@sikouhjw
Copy link

覆盖一下就好了,你需要的是找到『符合你审美』的字体。

\documentclass{article}
\usepackage{amsmath,unicode-math}
\setmathfont{XITS Math}
\setmathfont{Latin Modern Math}[range = bb]
\begin{document}
  $\symbb{ABCD}$
\end{document}

@Triumphal
Copy link
Author

使用 XITS 是为了和Word版本相近(许多人有此诉求)。 如果你想进行修改:

\setmathfont{XITSMath-Regular}[

开始注释,直到(包括)

然后在此后加入你需要的math字体package

是的,我将其替换成
\setmathfont{Latin Modern Math}
\setmathfont{TeXGyrePagellaMath-Regular}[range={\mathbb}]
解决了我的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants