From 666b6b2b054c270859224d5e13fc947d465aa2cc Mon Sep 17 00:00:00 2001 From: Andrew Junhao WU Date: Thu, 23 Apr 2026 16:10:02 +0800 Subject: [PATCH 1/2] Revise bilingual captions and add 'cap-able' package info Updated bilingual figure captions to improve clarity and added information about the 'cap-able' package. --- main.typ | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.typ b/main.typ index 9f68c81..b767cb7 100644 --- a/main.typ +++ b/main.typ @@ -2143,10 +2143,11 @@ key: zh: [此外,若在 show 规则中用`link(it.element.location(), …)`替代`ref`,又会引发其它问题,例如难以给`link`、`ref`分别上色。], ) -=== #bbl(en: [Bilingual figure captions], zh: [双语插图标题]) +=== #bbl(en: [Bilingual figure captions], zh: [插图标题]) #level.advanced #workaround("https://typst-doc-cn.github.io/guide/FAQ/dual_language_caption.html") +#workaround("https://typst.app/universe/package/cap-able") ```example-page >>> Expected: @@ -2158,6 +2159,8 @@ key: >>> ] ``` +双语标题现在可以使用 `cap-able` 包的 `bicap` 函数快速实现。 + == #bbl(en: [What else?], zh: [其它]) #prompt(from-w3c: "https://www.w3.org/TR/clreq-gap/#other")[ From 0bd9aebc233a8ced47d08f2c2b6b9dbbd26750e7 Mon Sep 17 00:00:00 2001 From: Andrew Junhao WU Date: Thu, 23 Apr 2026 16:11:31 +0800 Subject: [PATCH 2/2] Update bilingual caption text in main.typ --- main.typ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.typ b/main.typ index b767cb7..1172ae9 100644 --- a/main.typ +++ b/main.typ @@ -2143,7 +2143,7 @@ key: zh: [此外,若在 show 规则中用`link(it.element.location(), …)`替代`ref`,又会引发其它问题,例如难以给`link`、`ref`分别上色。], ) -=== #bbl(en: [Bilingual figure captions], zh: [插图标题]) +=== #bbl(en: [Bilingual figure captions], zh: [双语插图标题]) #level.advanced #workaround("https://typst-doc-cn.github.io/guide/FAQ/dual_language_caption.html")