mystmd icon indicating copy to clipboard operation
mystmd copied to clipboard

🔢 Numbering options do not apply to proof/theorems/etc

Open fwkoch opened this issue 1 year ago • 3 comments
trafficstars

Description

Numbering options can be customized in frontmatter for figures, headings, equations, even unknown kinds:

numberings:
  headings: true
  figure:
    template: Fig. %s
  unknown-kind: true

It should also work for proofs/theorems/etc but neither of these work; proof kinds are always numbered.

numberings:
  lemma: false
  prf:lemma: false

fwkoch avatar Mar 04 '24 20:03 fwkoch

This does apply correctly:

numberings:
  proof:lemma:
    template: Lem. %s

but it is still not all the way there - you cannot disable numbering with

numberings:
  proof:lemma: false

fwkoch avatar Mar 04 '24 21:03 fwkoch

I remember that we actually number by the type:kind combination, except for containers, which are elevated to just their kind in the numbering dict. I suppose that needs to be improved.

rowanc1 avatar Mar 11 '24 13:03 rowanc1