From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Jan_B=F6cker?= Subject: Re: Footnote export Date: Sat, 31 Jul 2010 19:33:14 +0200 Message-ID: <4C545E5A.2010402@jboecker.de> References: <20100731131749.c88f92d2.typhoon@aanet.com.au> <4C53B456.5010809@jboecker.de> <20100731163222.892a731a.typhoon@aanet.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=57749 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OfFw1-0005B5-NJ for emacs-orgmode@gnu.org; Sat, 31 Jul 2010 13:33:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OfFw0-0002FO-Ky for emacs-orgmode@gnu.org; Sat, 31 Jul 2010 13:33:21 -0400 Received: from smtp01.worldserver.net ([217.13.200.37]:43304) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OfFw0-0002F6-G6 for emacs-orgmode@gnu.org; Sat, 31 Jul 2010 13:33:20 -0400 In-Reply-To: <20100731163222.892a731a.typhoon@aanet.com.au> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Typhoon Cc: emacs-orgmode@gnu.org 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