note286 / xduts

Xidian University TeX Suite 西安电子科技大学LaTeX套装
https://www.ctan.org/pkg/xduts
LaTeX Project Public License v1.3c
699 stars 71 forks source link

macbook pro 10.15.7使用问题 #33

Closed zhangke97 closed 1 year ago

zhangke97 commented 1 year ago

owner你好,我是西电的学生,想要使用该模版,但是起步就遇到了问题; 电脑版本为10.15.7,使用的软件为MacTeX2022,已安装的软件(TexShop等)如下: 截屏2023-01-19 20 30 16

在执行tlmgr update --all --self这一步时,报错信息如下:

/Library/TeX/texbin/tlmgr: open tlpdb(https://mirrors.cloud.tencent.com/CTAN/systems/texlive/tlnet//tlpkg/texlive.tlpdb) failed: No such file or directory at /usr/local/texlive/2018/tlpkg/TeXLive/TLPDB.pm line 362.

在执行texdoc xduts这一步时,报错信息如下:

Sorry, no documentation found for xduts. If you are unsure about the name, try searching CTAN's TeX catalogue at http://ctan.org/search.html#byDescription.

报错信息截图如下: image 后续不知道该如何进行,希望解答,十分感谢~

note286 commented 1 year ago

/Library/TeX/texbin/tlmgr: open tlpdb(https://mirrors.cloud.tencent.com/CTAN/systems/texlive/tlnet//tlpkg/texlive.tlpdb) failed: No such file or directory at /usr/local/texlive/2018/tlpkg/TeXLive/TLPDB.pm line 362.

从报错信息来看,你不是MacTeX 2022,而是MacTeX 2018。

你可以执行tex -v来查看MacTeX版本。

如果确定不是MacTeX 2022,是老版本,建议根据Uninstalling - MacTeX - TeX Users Group的提示卸载MacTeX,并重新下载并安装MacTeX 2022。

zhangke97 commented 1 year ago

感谢,已确定是2018,我在开始前更新了软件为最新版,但看来需要卸载重装

note286 commented 1 year ago

如果你已经安装了MacTeX 2022,你可以移除2018的环境变量,增加2022的环境变量。

最后执行which tex并核查目录确认是否正常。

note286 commented 1 year ago

如果你不想卸载重装,也可以参考滚动升级 TeXLive | 无锤乙醇实现跨版本升级。

简单来说即手动更新tlmgr,后续操作和日常更新没有区别。

zhangke97 commented 1 year ago

好的,我尝试一下,感谢回复,已star