Better cross section exercise referencing

Signed-off-by: szdytom <szdytom@qq.com>
This commit is contained in:
方而静 2025-07-13 21:10:44 +08:00
parent efc3f90e5e
commit 0cd1eff5dd
Signed by: szTom
GPG Key ID: 072D999D60C6473C

View File

@ -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))
)
}
}