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

数学公式字体应该使用什么? #81

Open
mengchaoheng opened this issue Dec 18, 2024 · 2 comments
Open

数学公式字体应该使用什么? #81

mengchaoheng opened this issue Dec 18, 2024 · 2 comments

Comments

@mengchaoheng
Copy link
Owner

mengchaoheng commented Dec 18, 2024

做了一番探索,在580f235

也许测试文件test.tex中的

\usepackage{unicode-math} 
\setmathfont{XITS Math} 

配合特定的加粗斜体控制命令,是比较好的选择,需要进一步测试。

@mengchaoheng
Copy link
Owner Author

@PlexusChen 之前的mathptmx包问题挺多,我探索了一番,gpt也给了几种使用Times new roman的方式。目前没经过广泛测试不敢轻易推,毕竟以前的再有问题也用了很多届。今年刚毕业的同学还是使用旧模板。

@mengchaoheng
Copy link
Owner Author

mengchaoheng commented Dec 19, 2024

到这里,已经慢慢有点眉目。类似的问题在 #74#71

回答这个问题,首先先考虑几个问题:

  1. 规范中是否规定了数学公式的字体?
  2. word写的公式(无论是自带公式编辑器还是mathtype),用的是什么字体?如何改用OpenType字体?
  3. xelatex中如何设置公式字体?

没有答案不要紧,先看几个Opentype Math字体在Word公式中的展示效果对比,再看如何在 XeTeX 中单独设置数学字体

简而言之,如果十分确定自己使用什么字体,或者对unicode-math的兼容性问题无法忍受,又或者持保守态度,不想冒险使用“新字体”,那不要改任何设置,使用默认的 Computer Modern 即可,因为模板的有效性已经由很多届同学验证,我反复提到这句话是因为,我们只是写毕业论文,不是成为latex专家,不要在修改模板上花时间,尽量使用现有的东西。

若还是非常执著于修改公式字体,那可以试试所有OpenType math字体,XITS Math是我看比较合适的一种。已经推送了测试文件一些test.tex供大家测试,还用word写了一些公式做对比。做完测试之后相信大家对上述三个问题有自己的理解。

Unicode-math这个包,想要用的好,得好好看看文档

记住这句话。

unicode-math包文档

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

1 participant