You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is very common for mathematical notes to employ shared counters for Theorems, Lemmas and Definitions, therefore it would be a great addition. It also can help structuring documents because directives that are close together in the text also have a similar counter.
Implementation details
Starting from #62 each directive has its own numbering which is useful for some situations. However, I think it is very common to have shared counters for certain directives. In LaTeX for example I usually do something like
where Theorem, Definition and Remark share a counter and Algorithm has its own numbering. Is it possible to have a similar mechanic for this sphinx extension?
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
I second the use case. Another example is a corollary following a theorem. I find it odd to have theorem 15 followed by corollary 3. This happens because corollaries are fewer. Consecutive numbering for theorems and corollary is better.
I'd like to support this feature request as well. Without ability to sync numbering of directives, the usability of the otherwise nice typesetting environment is affected a lot.
I have done a rewrite of sphinx-proof for my own project, extending the above PR 64.
The changes are rather big and I don't understand the codebase too well, so I will probably not create a PR with the bigger changes. Here is the link to the fork, in the hope that someone might find it useful.
Activity
welcome commentedon Sep 30, 2021
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! 🎉
shailesh1729 commentedon Mar 20, 2022
I second the use case. Another example is a corollary following a theorem. I find it odd to have theorem 15 followed by corollary 3. This happens because corollaries are fewer. Consecutive numbering for theorems and corollary is better.
oremark24 commentedon Apr 23, 2022
I'd like to support this feature request as well. Without ability to sync numbering of directives, the usability of the otherwise nice typesetting environment is affected a lot.
Ljon4ik4 commentedon Dec 18, 2025
I have done a rewrite of
sphinx-prooffor my own project, extending the above PR 64.The changes are rather big and I don't understand the codebase too well, so I will probably not create a PR with the bigger changes. Here is the link to the fork, in the hope that someone might find it useful.
feat: Added possibility for shared numbering of theorems, fixing issue …
feat: Added possibility for shared numbering of theorems. (#164)
Prepare release (#166)
RELEASE: v0.4.0