WOOOO it works like a champ! Thanks a lot. Would you mind sharing how you figured it out? Why did you need that “last”? I spent hours without success. You nailed it!
My starting point were amazing answers to questions about numbering enum items per level, here and on Discord. With full: true you get an array containing the numbers of the parent enumerations and the number of the current item.
+ a (1,)
++ b (1, 1)
++ c (1, 2)
+++ d (1, 2, 1)
+ e (2,)
The ..nums is a sink which collects all excess arguments (parent numbers) and last is the last array item (the number of the current enum item).
Hi! Sorry for the delay in answering, I was dealing with a heavy workload. Thank you very much for your response, I just joined the Discord server! I’m going to study your explanation, I love Typst (from someone who has been using LaTeX for 15 years). You are amazing! See you in the amazing Typst universe haha