Description
Description / Summary
Have shared numbering for certain directives.
Value / benefit
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
Theorem 1
Definition 2
Remark 3
Algorithm 1
Theorem 4
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?
Tasks to complete
No response