On 07/31/2010 08:32 AM, Typhoon wrote:
> 
> Yes, thanks. I was using f:nil but what I would really like is to
> disable [1] type footnotes while retaining the [fn:1] style.
> 
> Nice trick on the zero-space - That would be OK, I suppose, but like
> you say, a bit tedious after a while.
> 

Alright, so we know a way to do what we want (although it is possibly
not the most elegant method), but it is a tedious, repetitive task. No
worries, that's what computers are for!

Add the following to your .emacs:

(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)


To disable plain footnotes, you can now add a line like this to your Org
file:
#+DISABLE_PLAIN_FOOTNOTES: some arbitrary text

Hope this works and solves your problem for now.

Jan

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to