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
For some reason if you use [^1] as a footnote reference, it actually appears as 2 in the final HTML, even if it is the only footnote. To contrast, if you use [^a] it will show correctly as 1.
Its something to do with how docutils stores footnote references, but the solution isn't immediately apparent
hey @So-Cool the reference label has no bearing on the actual number shown on the page: they are always numbered in the sequential order they are referenced, i.e [^0] means that you have labelled that footnote as "0", it does not mean that it will have the number 0
To avoid confusion, I would suggest always using letters for labels, e.g. [^a]
It would make more sense to use the exact footnote sequential number as its reference number, the current solution is less intuitive and somewhat confusing.
It would make more sense to use the exact footnote sequential number as its reference number, the current solution is less intuitive and somewhat confusing.
These identifiers are used only to correlate the footnote reference with the note itself; in the output, footnotes will be numbered sequentially.
Using sequential numbers is generally a bad idea, because you then would have to re-number all your footnotes if you ever add an extra footnote in the middle of the text, or restructure your documentation.
Adds a footnote using "10" as reference mark. Unless you have a good reason to do this, it's not recommended because the footnote counter is not altered and you may end up with two different footnotes with the same mark.
Activity
So-Cool commentedon Dec 29, 2020
There are a few other issues with footnotes:
[^0]and[^1]on the same page appear as2and3;[^2]and[^0]on the same page appear as1and3;[^2]and[^1]on the same page appear as3and4;[^2]and[^3]on the same page appear as1and4; and[^2]and another one with a number greater than3on the same page appear as1and3.chrisjsewell commentedon Dec 29, 2020
hey @So-Cool the reference label has no bearing on the actual number shown on the page: they are always numbered in the sequential order they are referenced, i.e
[^0]means that you have labelled that footnote as"0", it does not mean that it will have the number 0To avoid confusion, I would suggest always using letters for labels, e.g.
[^a]So-Cool commentedon Dec 29, 2020
Sure, I just figured that this information may be useful in debugging the issue.
chrisjsewell commentedon Dec 29, 2020
ok cheers 👍
idnsunset commentedon Jan 15, 2021
It would make more sense to use the exact footnote sequential number as its reference number, the current solution is less intuitive and somewhat confusing.
chrisjsewell commentedon Jan 16, 2021
the documentation though never suggests to use numbers: https://myst-parser.readthedocs.io/en/latest/using/syntax.html#footnotes, and the implementation is based on the standard pandoc implementation: https://pandoc.org/MANUAL.html#footnotes, as it says there:
Using sequential numbers is generally a bad idea, because you then would have to re-number all your footnotes if you ever add an extra footnote in the middle of the text, or restructure your documentation.
One could consider adding extra syntax to define a specific reference mark, as in LaTeX:
\footnote[10]{footnotes working fine}, but even there it is advised against (https://www.overleaf.com/learn/latex/footnotes):