[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Footnote export

From: Jan Böcker
Subject: Re: [Orgmode] Footnote export
Date: Sat, 31 Jul 2010 19:33:14 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100713 Thunderbird/3.0.6

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)
                (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
#+DISABLE_PLAIN_FOOTNOTES: some arbitrary text

Hope this works and solves your problem for now.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]