I want a command similar to LaTeXs \numberwithin{equation}{section}.
So e.g. the 5th equation in chapter 2 should have the number (2.5). How can I achieve this? Is there a package that does this?
On Discord, I found some old code that works, but the compiler gives the warning that this uses the deprecated locate function so I would assume that this is not the canonical way to do this. What is?
(I feel like the most user friendly would be a package that does this under the hood and gets updated every time a new version of typst deprecates some of the used code. Has anyone written or seen this?)
I get what you’re saying about this being dropped into a package to be user-friendly, and there very well may be a package that might manage this. However, I find one of the great features of Typst is using set and show rules to precisely style your document. This has the added benefit of having only minimal package dependencies (in contrast to LaTeX).
I tried to use both packages but failed to get a correct numbering given the fact, that I start my section numbering at 0, because they assume, that it starts at 1 and therefore give me one too high section counter.