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

macOS系统编译生成pdf后,复制正文不乱码,复制标题乱码 #93

Open
DreamRiverForever opened this issue Dec 17, 2022 · 2 comments

Comments

@DreamRiverForever
Copy link

只要是复制pdf中黑体字体全部乱码

@yzwduck
Copy link
Contributor

yzwduck commented Dec 18, 2022

macOS 下黑体 (和仿宋) 与 XeLaTeX 有些兼容问题,但我不太清楚具体原因。

但是有个简单的 workaround: 把黑体 \heiti 换成苹方黑体 \pingfang 就不会乱码了。
具体做法是在 "global.tex" 里加上:

\renewcommand{\heiti}{\pingfang}

@DreamRiverForever
Copy link
Author

macOS 下黑体 (和仿宋) 与 XeLaTeX 有些兼容问题,但我不太清楚具体原因。

但是有个简单的 workaround: 把黑体 \heiti 换成苹方黑体 \pingfang 就不会乱码了。 具体做法是在 "global.tex" 里加上:

\renewcommand{\heiti}{\pingfang}

非常感谢,这个确实能解决复制乱码问题,但是可能和格式有点区别,我再看看有什么解决方法

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