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

文档里面普朗克常数\hbar显示不正常。 #26

Closed
BadeSummer opened this issue Apr 19, 2021 · 2 comments
Closed

文档里面普朗克常数\hbar显示不正常。 #26

BadeSummer opened this issue Apr 19, 2021 · 2 comments

Comments

@BadeSummer
Copy link

操作系统:MacOS Big Sur 11.2.3

编译系统:This is XeTeX, Version 3.14159265-2.6-0.999992 (TeX Live 2020)

主要问题:pdf中数学环境里面\hbar显示不正常。

image

尝试解决方法:

  1. 在cls模版里\RequirePackage{fontspec}语句加上[no-math]参数,即修改成\RequirePackage[no-math]{fontspec}。结果导致编译时出现\setmainfont{Times New Roman} undefine报错。
  2. 尝试自己重新定义\hbar命令,在main.tex文档开始前加入\renewcommand{\hbar}{\mathchar'26\mkern-9mu h}。结果:普朗克符号没有发生变化,似乎是定义没有被“读取”?在我个人的例子中,我还有其他定义\newcommand{\mean}[1]{\langle #1 \rangle}都是可以正常工作的。只是\hbar这一条定义无法产生效果。
@BadeSummer
Copy link
Author

已经解决:no-math参数只能在调用模版的时候用。所以需要\documentclass[no-math]{sysuthesis}

@wwyf
Copy link
Member

wwyf commented Apr 21, 2021

赞👍,有解决方案就很棒

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants