How can I disable the
[n] being linked to a footnote and highlighted?
[n] can be many things, like any index of an array. So, I want my footnotes to be[fn:n]
An old post to an emacs-orgmode mailing list I found suggests one of the two following solutions (I have not tested these) should work:
#+DISABLE_PLAIN_FOOTNOTES: some arbitrary textto your org-mode file.
Add to your
(defun jb/disable-plain-footnotes-hack () (if (plist-get opt-plist :no-plain-footnotes) (save-excursion (goto-char 1) (replace-regexp "\\[\\([0-9]+\\)\\]" "[\u200B\\1]")))) (add-to-list 'org-export-inbuffer-options-extra '("DISABLE_PLAIN_FOOTNOTES" :no-plain-footnotes)) (add-hook 'org-export-preprocess-hook 'jb/disable-plain-footnotes-hack)
Given the age of the post I found this in, any recent version of emacs org-mode should work with the first solution.
I ran into this as well, so I asked on emacs.SE. Overriding the regular expression functions as in this answer works nicely. Reproducing this here:
org-footnote-definition-re functions by using this in your .emacs file:
(setq org-footnote-definition-re "^\\[fn:[-_[:word:]]+\\]" org-footnote-re (concat "\\[\\(?:fn:\\([-_[:word:]]+\\)?:" "\\|" "\\(fn:[-_[:word:]]+\\)\\)"))