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的渲染问题 #40

Closed
wangfh5 opened this issue Feb 26, 2022 · 4 comments
Closed

\hbar的渲染问题 #40

wangfh5 opened this issue Feb 26, 2022 · 4 comments

Comments

@wangfh5
Copy link

wangfh5 commented Feb 26, 2022

在正文中输入公式符号$\hbar$,发现编译之后符号异常,bar的位置过于靠上,这通常在amsmath宏包中并不会出现

$E=\hbar \omega$

image

怀疑是模板中的某个地方(引用的某个宏包)将命令$\hbar$重新定义了。暂时的解决方式是在main.tex中正文开始处增加一行代码重新定义\hbar

...
\begin{document}
\renewcommand{\hbar}{h\hspace*{-0.35em}\bar{}\hspace*{0.35em}}
......

编译结果为:
image

注意这行重定义命令经过尝试,只能在正文区加入才能生效,如果像下面这样塞入导言区则不会生效,原因可能是导言区中的某个宏包将\hbar给又重新定义了

...
\renewcommand{\hbar}{h\hspace*{-0.35em}\bar{}\hspace*{0.35em}}
\begin{document}
...
@wu-kan
Copy link
Member

wu-kan commented Feb 26, 2022

收到,我们看一下怎么调整

@wwyf
Copy link
Member

wwyf commented Mar 26, 2022

看着是个奇怪的问题

@penglb3
Copy link
Contributor

penglb3 commented Apr 18, 2022

看上去和#26 是一样的问题?

@wangfh5
Copy link
Author

wangfh5 commented Apr 18, 2022

看上去和#26 是一样的问题?

感谢

@wangfh5 wangfh5 closed this as completed Apr 18, 2022
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

4 participants