stone-zeng / fduthesis

LaTeX thesis template for Fudan University
LaTeX Project Public License v1.3c
811 stars 205 forks source link

标准安装后编译报错:Package "ctex" is too old. #223

Closed jjhraymond closed 2 years ago

jjhraymond commented 2 years ago

安装了TeX Live 2021版本,使用tlmgr install fduthesis命令安装,发现已经安装完成:

tlmgr.pl: package repository https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet (not verified: gpg unavailable)
tlmgr.pl install: package already present: fduthesis

使用tlmgr info fduthesis查看版本,和GitHub上版本相同:

package:     fduthesis
category:    Package
shortdesc:   LaTeX thesis template for Fudan University
longdesc:    This package is a LaTeX thesis template package for Fudan University. It can make it easy to write theses both in Chinese and English.
installed:   Yes
revision:    56216
sizes:       src: 545k, doc: 1525k, run: 457k
relocatable: No
cat-version: 0.7e
cat-license: lppl1.3c
cat-topics:  dissertation class chinese latex3
cat-related: thuthesis cquthesis
cat-contact-bugs: https://github.com/stone-zeng/fduthesis/issues
cat-contact-repository: https://github.com/stone-zeng/fduthesis
collection:  collection-langchinese

使用xelatex test.tex编译最小示例:

%test.tex
\documentclass{fduthesis}

\begin{document}
    Hello, world!
\end{document}

编译失败,出现报错:

! Package fduthesis Error: Package "ctex" is too old.
(fduthesis)                The fduthesis class only supports "ctex" with a
(fduthesis)                version
(fduthesis)                higher than v2.4.10.
(fduthesis)
(fduthesis)                Please update an up-to-date version of it using
(fduthesis)                your
(fduthesis)                TeX package manager or from CTAN.

使用tlmgr info ctex查看ctex宏包信息:

package:     ctex
category:    Package
shortdesc:   LaTeX classes and packages for Chinese typesetting
longdesc:    ctex is a collection of macro packages and document classes for LaTeX Chinese typesetting.
installed:   Yes
revision:    61285
sizes:       src: 481k, doc: 1137k, run: 1753k
relocatable: No
cat-version: 2.5.8
cat-license: lppl1.3c
cat-topics:  chinese book-pub class
cat-contact-repository: https://github.com/CTeX-org/ctex-kit
cat-contact-bugs: https://github.com/CTeX-org/ctex-kit/issues
cat-contact-support: https://github.com/CTeX-org/ctex-kit/issues
cat-contact-home: http://www.ctex.org/HomePage
collection:  collection-langchinese

ctex宏包版本确实大于2.4.10。

我查看之前有人提交的issue中也有提及类似问题,似乎是通过扁平化安装解决的,但我通过标准安装下来的宏包还是没有办法编译。请问需要如何解决?谢谢!

sikouhjw commented 2 years ago

clone 最新版本,然后使用

atxy-blip commented 2 years ago

可能是因为升级后没有重建格式文件,可以输入以下命令先升级全部宏包再重建一下格式文件:

tlmgr update --all
fmtutil-user --all

(可能需要管理员权限)

sikouhjw commented 2 years ago

可能是因为升级后没有重建格式文件,可以输入以下命令先升级全部宏包再重建一下格式文件:

tlmgr update --all
fmtutil-user --all

(可能需要管理员权限)

不是这个问题,就是模板没发行到 ctan 的问题。

stone-zeng commented 2 years ago

争取在春节前更新,现在需要直接 clone 最新版(不是 release)