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

公式字体使用Times New Roman失败 #7

Open
lovingsbaer opened this issue May 15, 2024 · 2 comments
Open

公式字体使用Times New Roman失败 #7

lovingsbaer opened this issue May 15, 2024 · 2 comments

Comments

@lovingsbaer
Copy link

如果使用模板中的\usepackage{fontspec}及\setmainfont{Times New Roman}则公式字体并不是Times New Roman,为此选择使用mathptmx宏包但部分运算符号不显示,烦请咨询下作者大大

@Sophie10001b
Copy link
Owner

Sophie10001b commented May 15, 2024

相关的答案可以稍微参考一下https://www.zhihu.com/question/391007830
以及https://tex.stackexchange.com/questions/15058/use-mathrm-by-default
Times new roman并不是一套数学字体,所以目前latex里能搜到的都是通过近似风格的字体代替,比如你用的mathptmx,不过不知道是ctex的兼容问题还是amssymb啥的兼容问题,亦或是编码的问题,我这边尝试过的字体替换大部分都会存在符号缺失,最后能通过是{unicode-math}配合{STIX}字体。不过我这边写的时候直接用默认的数学字体也没碰到啥问题,因为word数学公式的字体也不是times new roman🤔

@lovingsbaer
Copy link
Author

好嘞好嘞谢谢作者大大

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

2 participants