CTeX-org / forum

A temporarily alternate forum of `bbs.ctex.org`
https://t.me/chinesetex
Apache License 2.0
212 stars 16 forks source link

似乎 ctex 宏包的 github actions 有问题 #249

Open lvjr opened 2 years ago

lvjr commented 2 years ago

问题出现在 windows 里编译的时候。虽然外面显示一个绿色的 ✓,但是里面的编译日志是有错误的:

Installing dependency: ../xeCJK
Installing dependency: ../zhnumber
Running checks on
  backend (1/67)
  basic01 (2/67)
  basic02 (3/67)
  basic03 (4/67)
  basic04 (5/67)
  basic05 (6/67)
  beamer01 (7/67)
  beamer02 (8/67)
  cleveref01 (9/67)
  cleveref02 (10/67)
  cleveref03 (11/67)
  ctexhook (12/67)
  ctexpatch (13/67)
  fancyhdr01 (14/67)
  fancyhdr02 (15/67)
  fancyhdr03 (16/67)
  fancyhdr04 (17/67)
  files01 (18/67)
  files02 (19/67)
  fonts01 (20/67)

Check failed with difference file
  - ./build/check/fonts01.pdftex.fc

-----------------------------------------------------------------------------------
Comparing files .\BUILD\CHECK\fonts01.pdftex.tlg and .\BUILD\CHECK\FONTS01.PDFTEX.LOG
***** .\BUILD\CHECK\fonts01.pdftex.tlg
   11:  LaTeX Font Info:    Trying to load font information for C70+zhhei on input line ....
   12:  (../c70zhhei.fd)
   13:  Package CJKpunct Info: use punctuation spaces for family 'zhhei' with punctstyle (quanjiao) on input line ....
   14:  LaTeX Font Warning: Font shape `OT1/cmss/m/it' in size <10.53937> not available
***** .\BUILD\CHECK\FONTS01.PDFTEX.LOG
   11:  LaTeX Font Info:    Trying to load font information for C70+zhhei on input line ....
   12:  (../c70zhhei.fd)Package CJKpunct Info: use punctuation spaces for family 'zhhei' with punctstyle (quanjiao) on input line ....
   13:  LaTeX Font Warning: Font shape `OT1/cmss/m/it' in size <10.53937> not available
*****
-----------------------------------------------------------------------------------
lvjr commented 2 years ago

我的 tabularray 宏包的 workflows 文件是基于 ctex 宏包的文件修改的,最近发现在 github actions 编译时有奇怪的字体错误。追踪之下发现 texlive 安装时不会自动创建个人的 texmf 目录(TEXMFCONFIG, TEXMFVAR, TEXMFHOME),导致 PK 字体文件无法正确生成。然后在 texlive.profile 里面把个人的 texmf 目录指向系统 texmf 目录,就恢复正常了。

不确定 ctex 宏包的上述编译错误是否也与此问题有关,仅供参考。

stone-zeng commented 2 years ago

之前也一直是有这个问题的,似乎 windows 下面没有触发错误检测。

lvjr commented 2 years ago

也可能和我之前给 l3build 报告的这个 issue latex3/l3build#201 有关。即在编译过程中出现的 LaTeX Font Info 会干扰 l3build 对 log 文件的处理。

lvjr commented 2 years ago

l3build 确实还有一些可改进的地方。之前还碰到一个问题:tlg 文件为空,而 TeX 系统缺少某宏包,最后 l3build 依然输出 All checks passed.