CTeX-org / ctex-kit

Macro Packages and Scripts for Chinese TeX users
976 stars 124 forks source link

ctex: 兼容较早版本的 LaTeX #507

Closed qinglee closed 4 years ago

qinglee commented 4 years ago

目前,ctex v2.5 直接使用了 LaTeX 2020-02-02 中才定义的 \@rmfamilyhook 等字体钩子。这可能导致问题。

比如查看今天 latex3 的测试日志发现 https://travis-ci.org/github/latex3/latex3/jobs/683310001#L1359-L1363

! Undefined control sequence.
<argument> \@rmfamilyhook 

l.126 ...ook      { \CJKfamily { \CJKrmdefault } }

如果用户使用 latexrelease 包回滚内核,也会触发这一错误。我们需要像在 xeCJK 中那样比较保险地处理这些字体钩子。