Skip to content

Include example of resetting figure counters in docs #6641

@RayBB

Description

@RayBB

Description

I think it would be very handy if on the counter page you added examples of resetting figure counters.

Basically this:

counter(figure.where(kind: image)).update(0)
counter(figure.where(kind: table)).update(0)

Why? Well, for my book each chapter has figures and tables that start again at the number one. It's a bit unusual but not totally out of the ordinary. Another use case where someone might want to know how to do this is if they have a table that's actually an image and want to increase the table counter.

Anyway, this is just my two cents as it took a bit to long to figure this out before I found a similar enough answer here
https://forum.typst.app/t/how-do-i-reset-the-figure-numbering-after-a-header-using-quarto/3680/3

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions