数学公式中正体字体问题
#55
-
Beta Was this translation helpful? Give feedback.
Answered by
note286
Mar 1, 2023
Replies: 1 comment 14 replies
-
手册中已经提及,除了Computer Modern数学字体外,均为 在 一般来说,公式符号为意大利体,这是约定俗成的,你在LaTeX直接写公式默认就是意大利体。因此,我建议你使用 最后,由于学位论文规定英文字体为Times New Roman,因此我更建议你选择一款Times风格的数学字体,例如XITS Math。 \documentclass{xdupgthesis}
\xdusetup{style/math-font=bonum}
\begin{document}
$\sin x$
$\sin \symup{x}$
$\sin \mathrm{x}$
\end{document} |
Beta Was this translation helpful? Give feedback.
14 replies
Answer selected by
jzmzz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
手册中已经提及,除了Computer Modern数学字体外,均为
unicode-math
宏包处理,因此,如果你想使用正体,请使用\symup
而不是\mathrm
。此外,\symrm
和\symup
是互为别名,这一点你可以在unicode-math
手册中看到。在
unicode-math
中,\math
系列的命令是调用文本字体,而\sym
系列的命令是调用数学字体,同样地,这一点你可以在unicode-math
手册中看到。因此你可以看到下面的示例中,\symup{x}
和\mathrm{x}
的显示效果不同,是因为不是同一个字体。一般来说,公式符号为意大利体,这是约定俗成的,你在LaTeX直接写公式默认就是意大利体。因此,我建议你使用
$\sin x$
而不是$\sin \symup{x}$
。最后,由于学位论文规定英文字体为Times New Roman,因此我更建议你选择一款Times风格的数学字体,例如XITS Math。