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
That "else" seems bad :)
When the sectioning style has no numberstyle.main entry, we issue a warning, and still display an "unstyled" number. Perhaps we should just accept it and not show anything there. It would need proper documentation --
Well, number styles already have a display: "⟨format⟩" field (for "arabic", "roman", etc.). (the default if absent being arabic). Of course we could use a special value here (e.g. display: "none") or add a different field (e.g. visible: true|false)... But I am not sure whether we should go that way or not. Number styles are used in a variety of contexts (e.g. page folio, footnote calls and references)... I'm not sure it's perfectly safe to have the ability of them being not shown in these cases... But perhaps it's what we would want eventually... E.g. a way to disable all folio numbering, lol.
The "else" bit of code in sectioning styles referred to above is clearly overlooked, and removing it would solve our issue here. Whether to also extend the numbering styles and generalize the hiding of numbers... I just dunno...
Sounds much reasonable in this context. It would be a nice feature to have, but if too much effort required, then it should not be put on the priority list. I have a feeling that you've have started thinking about a way ;)
From discussion Omikhleia/markdown.sile#34 (reply in thread)
There are two different ways at looking at this topic:
numbering=false
in SIL or.unnumbered
in Markdown (Support unnumbered table/figure captions markdown.sile#51)Regarding the second point, in the above-mentioned discussion, I wrote:
But it's kind of an overlooked topic or a loophole in the logic:
resilient.sile/packages/resilient/sectioning/init.lua
Lines 118 to 128 in d25cc41
That "else" seems bad :)
When the sectioning style has no
numberstyle.main
entry, we issue a warning, and still display an "unstyled" number. Perhaps we should just accept it and not show anything there. It would need proper documentation --With (default) style such as:
One gets the number displayed with the said
figure-caption-main-number
numbering style....But if the
main
field is removed from the definition, rather than warn and do something, we could just skip the number output...The text was updated successfully, but these errors were encountered: