Laurenz
Laurenz
Would it be possible to instead measure twice with different settings for text edge?
I need a bit of time to gather my thoughts before leaving a comment here.
I think it's a very valid observation that "Stepping and getting a counter happen through the same object." is a flaw when viewed through the lens of dependant counters. The...
> However, the "separate state for every counting combination" approach also has their annoyances. As you said, you somehow need to maintain a global list of all counter combinations that...
I'm not so much thinking in terms of something having an associated state and more just of expanding which counter `get` functions are affected by which counter update elements. If...
> That's the whole idea behind the count() function. You only need a function, not an object, for the "querying". I feel like you somewhat agree with that part. I...
> The only solution I see to this is to allow stepping on multi-key counters, and it will always step the last key. I guess that could work, and fits...
What I still wonder is how all of this would be put into practice when I want to use top-level section numbers in my equations (https://github.com/typst/typst/issues/2652) without rebuilding equation numbering...
> for section-dependent counters, allow equation to take a dependent-keys argument where you pass e.g. (heading.where(level: 1), heading.where(level: 2)) and then it will just prepend this to it's own counter...
What if I don't want to prepend though? And also, it would be good to have control over the separators.