Closed laurmaedje closed 7 months ago
Thanks a lot!
I'm planning to update all possible snippets to new context system eventually on myself, not sure about time though.
Hi - please see the comment on https://github.com/sitandr/typst-examples-book/commit/4a6adffc2b1ea950c383f757c06b867fefb4ce38 :)
Location: https://sitandr.github.io/typst-examples-book/book/snippets/math/numbering.html#numbering
Importance: The current math numbering snippet has two issues:
locate
which discards the correct context provided to the numbering since Typst 0.11.counter(heading.where(level: 1))
, which isn't the idiomatic heading counter. It will count top-level headings, but ignore user-suppliedcounter(heading).update(..)
updates.Snippet: The snippet below fixes that: