Skip to content

Add chapter numbering to theorem numbering #1862

Answered by fwkoch
cpraveen asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @cpraveen - there currently is not yet a way to do this without hardcoding the chapter numbers. To hardcode a chapter number for a page, in the page frontmatter you can do:

---
numbering:
  enumerator: 5.%s
---

where 5 is the hardcoded chapter number. You can also set this for only prf:theorem with:

---
numbering:
  proof:theorem:
    enumerator: 5.%s
---

You can also set the explicit enumerator on a single proof with:

:::{prf:theorem}
:enumerator: 5.3

...
:::

I suspect you want to do this without hardcoding the chapter numbers, though. That's captured in this issue: #1787 - once that's done, you would be able to do something like enumerator: {chapter}.%s...

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@fwkoch
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by cpraveen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants