I've run into a very strange issue with Org-mode 8.2.10 footnotes. Given the following text, where | represents point and [empty-line] represents an empty line,


Foo bar baz =$= | foo bar baz


It is not possible to insert a footnote at point, any position on the line after point, or on the immediately following line. Cannot insert a footnote here is displayed when typingC-c C-x f.

If the ='s are removed, inserting footnotes works fine.

Has anyone encountered this before? I'm guessing that it has something to do with the $ being a LaTeX operator?

  • Indeed. As a workaround, you can add a space between $ and =, insert the footnote, then remove the space. – JeanPierre Mar 20 '16 at 6:59
  • I edited your post based on what I think you're doing, feel free to revert if I'm wrong. – JeanPierre Mar 20 '16 at 7:04

It seems to work in Org Mode 8.3.4 without any problems.

|improve this answer|||||
  • Alright then, I'll guess I'll eventually upgrade...eventually. – Tianxiang Xiong Mar 20 '16 at 8:13

Indeed, it is discussed in this message from 2011:

For what it's worth, this not directly related to footnotes. It's a weakness in `org-inside-LaTeX-fragment-p', which returns a non-nil value after =\begin{document}= instead of nil. And, obviously, one cannot add a footnote inside a LaTeX fragment...

I didn't find any mention of this problem in the commit logs but I suspect this has been fixed by commit 176681bc65b5c787dc0737ccd523afd19b7ea4c0 (2015-02-15) where the call to org-footnote-in-valid-context-p has been replaced by one to the new function org-footnote--allow-reference-p.

As a workaround before upgrading, you can temporarily add a space between $ and =, insert the footnote, then remove the space.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.