-
Hello, I get numbering for prf:theorem, prf:proof, prf:example, etc. but these do not have the chapter number appended to them. Is it possible get theorem, etc numbering like CHAPTER_NO.THEOREM_NO |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@fwkoch could you chime in here to elucidate on how to achieve this? |
Beta Was this translation helpful? Give feedback.
-
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:
where
You can also set the explicit enumerator on a single proof with:
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 |
Beta Was this translation helpful? Give feedback.
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:
where
5
is the hardcoded chapter number. You can also set this for onlyprf:theorem
with:You can also set the explicit enumerator on a single proof with:
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
...