polossk / LaTeX-Template-For-NPU-Thesis

西北工业大学本科毕业设计论文模版 | Thesis Template for Northwestern Polytechnical University
GNU General Public License v3.0
250 stars 43 forks source link

引入amsmath包后所有的公式引用都变成了(??) #33

Closed npuzl closed 2 years ago

npuzl commented 2 years ago

因为需要使用公式对齐,引入了amsmath包,然后使用\ref引用公式,会导致引用的公式都是(??)

polossk commented 2 years ago

请您多次编译一下latex,有可能是aux辅助文件的数据没有正确更新。 如果问题没有解决,麻烦您提供一份最小的可复现环境,我帮您测试下。

npuzl commented 2 years ago

收到!

npuzl commented 2 years ago

感谢回复,已经解决了,如果不在设置文件里面加入usepackage{amsmath},texstudio会提示\begin{aligned}环境有问题,但实际上是可以编译出来的,加了usepackage{amsmath}后texstudio的提示消失了,但是编译后公式引用变成了(??),所以最后的解决方案就是不管texstudio的提示

------------------ 原始邮件 ------------------ 发件人: "Shangkun @.>; 发送时间: 2022年5月27日(星期五) 凌晨0:20 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [polossk/LaTeX-Template-For-NPU-Thesis] 引入amsmath包后所有的公式引用都变成了(??) (Issue #33)

请您多次编译一下latex,有可能是aux辅助文件的数据没有正确更新。 如果问题没有解决,麻烦您提供一份最小的可复现环境,我帮您测试下。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

polossk commented 2 years ago

ok,感谢反馈,我们会把你的这个经验添加至 readme 文件中以帮助更多的同学。