Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify numbering frontmatter to customize "reset after" behavior #1788

Open
fwkoch opened this issue Jan 18, 2025 · 0 comments
Open

Modify numbering frontmatter to customize "reset after" behavior #1788

fwkoch opened this issue Jan 18, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@fwkoch
Copy link
Collaborator

fwkoch commented Jan 18, 2025

Currently, the numbering object in the frontmatter does not allow resetting figure numbering on each heading_1.

In general, everything resets at the page level (unless continue: true, then it does not reset). There are a few special cases: headings reset when the heading level above increments and sub-figures reset when figures increment. But this could easily be made more generic with something like:

numbering:
  figure:
    reset: heading_1

I suspect this change might also clean up the code and remove special cases around headings and subfigures.

@fwkoch fwkoch added the enhancement New feature or request label Jan 18, 2025
@fwkoch fwkoch self-assigned this Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant