Open hbierlee opened 2 months ago
I think there currently isn't a way for me to apply the numbering in the context of the referenced equation, as this would require something like typst/typst#3930.
Thanks for the quick reply. I see, I already thought it was a bit magic that this works for equations in the first place. Feel free to close this issue or to leave open to wait for the required typst feature to get implemented.
For those interested, I think I've found a workaround to still get CHAPTER.EQUATION_NUMBER.SUB_EQUATION_NUMBER
(which I really like as referencing style).
I just reset the numbering
argument of math.equation
at the start of each chapter:
= Chp 2
#set math.equation(
numbering: (..nums) => numbering("(1.1)", 2, ..nums), // hard-code chapter 2 as the first number
)
If you add your chapters dynamically, you can further automate this. (Or maybe this could be added as part of a show
rule for heading, but I haven't tried this.).
Hi,
Great package!
I'm running into a specific issue where the
numbering
function does not get local counter for sub-equations, like it does for regular equations (which allows the user to create aCHAPTER.EQUATION_NUMBER
type numbering).I am trying to achieve a
CHAPTER.EQUATION_NUMBER.SUB_EQUATION_NUMBER
, but:Link: playground
Cheers,
Henk