From 699b99e67f014594a35e576ae50ab9cbaa9bb55f Mon Sep 17 00:00:00 2001 From: szdytom Date: Tue, 15 Jul 2025 21:20:12 +0800 Subject: [PATCH] better enum number alignment Signed-off-by: szdytom --- styles.typ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/styles.typ b/styles.typ index a4a8994..9a9b706 100644 --- a/styles.typ +++ b/styles.typ @@ -218,9 +218,9 @@ show figure.where(kind: "exercise-problem"): it => { let cat_display = "习题" set align(left) - set enum(numbering: "(a) ") // 与原书一致 + set enum(numbering: "(a)", number-align: center + top) // 与原书一致 problem_box({ - context fancy_term_box(cat_display, it.counter.get().at(0)) + fancy_term_box(cat_display, it.counter.get().at(0)) h(0.5em) it.body })