From 0cd1eff5ddfe4f3b243837adf2360613d1241feb Mon Sep 17 00:00:00 2001 From: szdytom Date: Sun, 13 Jul 2025 21:10:44 +0800 Subject: [PATCH] Better cross section exercise referencing Signed-off-by: szdytom --- styles.typ | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/styles.typ b/styles.typ index f7f8970..a4a8994 100644 --- a/styles.typ +++ b/styles.typ @@ -273,9 +273,9 @@ return text("Error: 未找到习题", fill: color.red) } let e = el.first() - numbering("1A", counter("chapter_N").at(e.location()).at(0), counter("section_N").at(e.location()).at(0)) - "节" - ref(l) + link(e.location(), + numbering("1A节习题1(见第1页)", counter("chapter_N").at(e.location()).at(0), counter("section_N").at(e.location()).at(0), counter(figure.where(kind: "exercise-problem")).at(e.location()).at(0), counter(page).at(e.location()).at(0)) + ) } }