mdBook icon indicating copy to clipboard operation
mdBook copied to clipboard

Ordering of footnote

Open harryhanYuhao opened this issue 8 months ago • 1 comments

Problem

Currently the footnotes are numbered by their first reference in text, instead of the actual order of the footnote in the end.

For example

aha[^note], that is right[^another_note]

[^another_note]: right
[^note]: aha

Will be rendered to something like

aha^1, that is right^2

2 right
1 aha

Notice the footnote numbered as 2 is placed first. This is both unnatural and non-customary.

The customary style which is used by most journals is to number the footnotes in the order they are presented at the end.

aha[^note], that is right[^another_note]

[^another_note]: right
[^note]: aha

shall produce

aha^2, that is right^1

1 right
2: aha

Proposed Solution

Number the footnotes by their orders at the end, as most journals do.

Notes

No response

harryhanYuhao avatar Jul 01 '24 14:07 harryhanYuhao