Skip to content

数学公式中使用字体\mathcal{}显示效果却是\mathscr{},如何解决? #270

Answered by stone-zeng
XunXuChinese asked this question in Q&A
Discussion options

You must be logged in to vote

使用默认字体(XITS)的话:

\documentclass{fduthesis}
\setmathfont[range={\mathcal},StylisticSet=1]{XITSMath-Regular.otf}
\begin{document}
\[ \mathcal{F} + \mathscr{F} \]
\end{document}

如果要用 Latin Modern 字体(LaTeX 默认风格):

\documentclass{fduthesis}
\fdusetup{style/font=lm}
\setmathfont[range={\mathscr},StylisticSet=2]{XITSMath-Regular.otf}  % 这里还是用 XITS 的花体字
\begin{document}
\[ \mathcal{C} + \mathscr{C} \]
\end{document}

(参考 #211

Replies: 1 comment

Comment options

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