Tr0py / NKU-thesis-template-2020

南开大学毕业论文模板 Nankai University Thesis Template https://tr0py.github.io/NKU-thesis-template-2020/
https://tr0py.github.io/NKU-thesis-template-2020/
89 stars 14 forks source link

NKThesis.sty 定义重复 #9

Closed VitalC-3026 closed 2 years ago

VitalC-3026 commented 2 years ago

在NKThesis.sty的第40行\csname xeCJK@enc@UTF8\endcsname,显示xeCJK@enc@UTF8已经被定义过了。请问这个应该怎么调整呢?

VitalC-3026 commented 2 years ago

解决方法:把NKThesis.sty的34行注释掉

Tr0py commented 2 years ago

我没懂,为什么要这样修改呢? 是想要新feature吗?还是这是一个需要修复的bug?

VitalC-3026 commented 2 years ago

想修复一个bug。因为放到overleaf上面会报错:NKThesis.sty第40行\csname xeCJK@enc@UTF8\endcsname,显示xeCJK@enc@UTF8已经被定义过

Tr0py commented 2 years ago

什么叫“放到overleaf上面会报错”?在overleaf上的模板我看到的是没有错误的,你说的“放到overleaf”上是指你自己import的还是overleaf的模板有错?

On Fri, Mar 25, 2022 at 20:33 VitalC-3026 @.***> wrote:

想修复一个bug。因为放到overleaf上面会报错:NKThesis.sty第40行\csname @. @@.@UTF8已经被定义过

— Reply to this email directly, view it on GitHub https://github.com/Tr0py/NKU-thesis-template-2020/issues/9#issuecomment-1079552942, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJBDQXIWABUQZ6ABIV7LCVLVBZSP5ANCNFSM5RQNPGXA . You are receiving this because you commented.Message ID: @.***>

VitalC-3026 commented 2 years ago

我发现点击overleaf链接后使用的模板没有问题。我把这个仓库的压缩包下载下来,再上传到overleaf上,就会出现我之前的报错。

Tr0py commented 2 years ago

hmmm..有趣。我的猜测是你新建的project用的默认编译器不一样导致的报错。如果模板本身的配置没问题那我就当没bug要改了。 谢谢分享。:)

On Tue, Mar 29, 2022 at 08:34 VitalC-3026 @.***> wrote:

我发现点击overleaf链接后使用的模板没有问题。我把这个仓库的压缩包下载下来,再上传到overleaf上,就会出现我之前的报错。

— Reply to this email directly, view it on GitHub https://github.com/Tr0py/NKU-thesis-template-2020/issues/9#issuecomment-1081879366, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJBDQXNYZISX3WLCMMPQ5VTVCMBEVANCNFSM5RQNPGXA . You are receiving this because you commented.Message ID: @.***>

zdx100 commented 1 year ago

问题解决了吗?我也遇到类似问题,一直无法解决。注释一些内容后,参考文献部分无法正常显示。我是换了台电脑,原来的电脑能正常运行,新电脑报错,很奇怪。

Tr0py commented 1 year ago

报错信息是什么?如何复现你的问题?

zdx100 commented 1 year ago

报错信息是什么?如何复现你的问题?

报错内容是:

! LaTeX3 Error: Control sequence \CJKaddEncHook already defined.

For immediate help type H . ...

l.40 \csname xeCJK@enc@UTF8\endcsname ?

Process has been terminated ..

我怎么发给你压缩文件得以实验呢?

Tr0py commented 1 year ago

我似乎见过这个问题。这个似乎是因为新版本的XeLaTeX编译器包含了\CJKaddEncHook的定义,导致定义重复。你尝试用早一点版本的编译器试试。比如XeLaTeX 2019就可以解决这个问题。

你在overleaf上的话,可以直接在setting里面选择编译器版本。你如果自己编译的话,用docker image可以快速切换编译器版本。

Tr0py commented 1 year ago

我记得我有个commit fix了这个问题:https://github.com/Tr0py/NKU-thesis-template-2020/commit/a1eb382830750a5151bdb06fd11056d5921ff582

你试试。

Tr0py commented 1 year ago

这个应该可以解决问题。如果还是不行,可以把压缩包和你用的编译器版本发我邮箱。

zdx100 commented 1 year ago

试了老长时间,还是不行。现在把压缩包发你,麻烦给看看,谢谢。我用的版本是texlive2022。辛苦了。

在 2023-04-12 03:39:17,"tropping" @.***> 写道:

这个应该可以解决问题。如果还是不行,可以把压缩包和你用的编译器版本发我邮箱。

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

ChristinaGZH commented 9 months ago

我记得我有个commit fix了这个问题:a1eb382

你试试。

感谢大佬,我差点都要卸载重装texlive啦