How do I reset the figure numbering after a header using typst #12560
Unanswered
jaspertjansen
asked this question in
Q&A
Replies: 1 comment
-
Use Because you did not share anything simple, small, and reproducible, there is nothing more that can be done to help you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I am using a Typst template in Quarto for a report and I want to number my images and tables. I want them to be numbered as Figure 1.1, Figure 1.2 in chapter 1 and as Figure 2.1, Figure 2.2 in chapter 2. Currently, the figures in chapter 2 are numbered as Figure 2.3, Figure 2.4. The first number is correct, but I want the second number to be resetted at the start of each chapter.
I import my typst template in the yaml. In the typst template I use the following pieces of code:
To my understanding, the first piece of code should reset the second number in the figure and table numbering when a new chapter is made by placing a new header.
Other people using typst directly (so no Quarto) do use the same code, and for them the counter resets correctly (see for example: https://forum.typst.app/t/do-i-need-different-code-for-numbering-equations-and-figures/3068/2 or https://forum.typst.app/t/how-to-change-numbering-in-appendix/1716/6). If this a bug between Quarto and typst?
Beta Was this translation helpful? Give feedback.
All reactions