Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple paragraph footnotes in org-mode

I have an org-mode document with a footnote:

This some text[fn:1]. This is another text[fn:2].

* Footnotes

[fn:1] This is footnote's first line.

This is footnote's second line.

[fn:2] Another footnote

Then i resort and renumber footnotes by pressing C-u C-c C-x f S - org-footnote-action which executes (org-footnote-renumber-fn:N) and (org-footnote-normalize 'sort). The result is:

This some text[fn:1]. This is another text[fn:2].

* Footnotes

[fn:1] This is footnote's first line.

[fn:2] Another footnote

The second paragraph of the footnote is lost. This makes multiple paragraph footnotes impossible in org-mode. One semi-solution is to make a separate footnote for every paragraph, but i don't want that.

Is there any possibility to preserve structure in the footnote? What should i do to make org-mode not delete the text in the footnotes?

like image 507
Mirzhan Irkegulov Avatar asked Dec 15 '22 19:12

Mirzhan Irkegulov


2 Answers

For people visiting through google or who otherwise visit years later (as I did): this is now different. Multiple paragraphs are easily achieved, as footnotes only end after a two consecutive empty lines.

See https://orgmode.org/org.html#Creating-Footnotes :

It ends at the next footnote definition, headline, or after two consecutive empty lines

like image 170
EFLS Avatar answered Dec 25 '22 18:12

EFLS


According to the org mode manual:

If you need a paragraph break inside a footnote, use the LaTeX idiom ‘\par’.

It worked for me:

This some text[fn:1]. This is another text[fn:2].

* Footnotes

[fn:1] This is footnote's first line.\par
\par
This is footnote's second line.

[fn:2] Another footnote
like image 26
Oleg Pavliv Avatar answered Dec 25 '22 19:12

Oleg Pavliv