Skip to content

Commit 249300a

Browse files
authored
fix(ci): tl_packages 加 docext + xurl, 修 release.yml zhlineskip typeset (#906)
* fix(ci): tl_packages 加 docext + xurl, 修 release.yml zhlineskip.dtx typeset PR #905 之后 zhlineskip-v1.0f tag release.yml 走 fallback 装 TL 完整后, Build CTAN zip 在 typeset zhlineskip.pdf 时报: ! LaTeX Error: File `docext.sty' not found. zhlineskip.dtx driver 部分: \usepackage{caption, docext, xurl, booktabs, hyperref} 其中 caption / booktabs / hyperref 在 tl_packages 已有; docext / xurl 缺. - docext: myhsia 自己写的 doc 扩展包, 2026-06-13 上 CTAN - xurl: URL 任意字符断行, 独立小包 LaTeX 第一个 missing 就抛错退出, 没暴露 xurl 的 missing. 同时加上避免下 轮 release fail 再炸一次. tabularx / fancyvrb-ex / zref-base 看似缺其实在 tools / fancyvrb / zref 集合 里, 已经会跟着装. 不重复加. * test(ci): zhlineskip caller 临时加跑 l3build doc 暴露 typeset 缺包 PR #906 加 docext + xurl 后, l3build check 不 typeset, 看不出 zhlineskip.dtx driver 部分还缺什么 TL 包. release.yml 真去 typeset 才暴露, 但 release 在 push tag 时才跑, 反馈太慢, force-push 来回试错成本高. 临时改: zhlineskip caller 在 check 之后跟跑 l3build doc, fail 时 dump build/local 和 build/doc 下的 .log 帮诊断. 验证 docext/xurl + release 字体 配置真能 typeset 通过后改回 (l3build doc 比 check 慢一些, 字体 fc-cache 也 得装 — 但本来 caller 就装了 NotoCJK + fc-cache). PR #906 / #907 验证完毕后 revert 这个 commit. * fix(zhlineskip): sans/mono 不显式 UprightFont, fontconfig 查不到 "Regular" PR #904 把 setCJKsansfont 改 fontconfig 风格时给了 `UprightFont = * Regular`, test caller 跑 l3build doc 暴露 fontspec 报: The font "Noto Sans CJK SC Regular" cannot be found Noto Sans CJK OTC 集合里 fontconfig 没暴露 "Noto Sans CJK SC Regular" 这个 全名 — Regular 是默认 weight, 隐含在 family 名里. xeCJK 也是直接 `\setCJKsansfont{Noto Sans CJK SC}` 不带 weight. Main 是 Medium 不能省, 保留. Sans/Mono 去掉 UprightFont, fontspec 默认就 是 Regular. BoldFont = * Bold 保留 (Bold 不是默认, 要显式指定). * revert(ci): 撤销 zhlineskip caller 跑 l3build doc 临时验证 a3287d6 临时让 caller 跑 l3build doc 暴露 release.yml typeset 路径缺包. 已确认两个根因: - 0941890 之后 fontspec 报 'Noto Sans CJK SC Regular' not found 修好 - docext / xurl 在本 PR 加进 tl_packages - zhlineskip.pdf 11 pages 正常输出 (zhmakeindex 在 caller 里没装是预期, test caller 不该装 zhmakeindex, 那是 release.yml 专用) 恢复 caller 只跑 l3build check.
1 parent 1630004 commit 249300a

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/tl_packages

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ colortbl
8585
comment
8686
context
8787
csquotes
88+
docext
8889
enumitem
8990
environ
9091
esint
@@ -164,6 +165,7 @@ xecjk
164165
xint
165166
xits
166167
xstring
168+
xurl
167169
zhmetrics
168170
zhmetrics-uptex
169171
zhnumber

zhlineskip/zhlineskip.dtx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,13 @@ The Current Maintainer of this work is **Ruixi Zhang**.
201201
ItalicFont = * Black,
202202
BoldFont = * Bold
203203
]
204+
% Sans/Mono 不显式 UprightFont. fontspec 默认让 fontconfig 模糊匹配
205+
% Regular weight (Noto OTC 集合里没有单独 "Regular" 暴露名). 显式
206+
% `* Regular` 反而让 fontconfig 查不到. xeCJK 也是直接 `Noto Sans CJK SC`.
204207
\setCJKsansfont{Noto Sans CJK SC}[
205-
UprightFont = * Regular,
206208
BoldFont = * Bold
207209
]
208210
\setCJKmonofont{Noto Sans CJK SC}[
209-
UprightFont = * Regular,
210211
BoldFont = * Bold
211212
]
212213
\frenchspacing

0 commit comments

Comments
 (0)