Ihor Radchenko <yanta...@posteo.net> writes: >>> I am exporting an Org file that contains a large verse block to >>> LaTeX. This verse block contains footnotes, but they appear in the page >>> where the LaTeX verse environment ends. I looked at the exported .tex >>> file and I noticed that it was using "\footnotemark" and >>> "\footnotetext[N]{...}", instead of "\footnote{...}". >> ... >> I seem to remember that the problem you describe goes back to how Org >> understood the footnote text. When exporting to LaTeX, each line of a >> footnote was understood as if it were a verse, and Org added \\ at the >> end. Hence the use of \footnotemark and the >> ‘org-latex--delayed-footnotes-definitions’ function. > > Please try the attached tentative fix. > I limited special verse contents processing to plain-text directly > inside verse blocks (as in Org AST), except plain text inside inline > footnote definitions.
Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3218d376fa -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>