From mboxrd@z Thu Jan 1 00:00:00 1970 From: Typhoon Subject: Re: Footnote export Date: Sun, 1 Aug 2010 10:56:57 +1000 Message-ID: <20100801105657.38b53ca8.typhoon@aanet.com.au> References: <20100731131749.c88f92d2.typhoon@aanet.com.au> <4C53B456.5010809@jboecker.de> <20100731163222.892a731a.typhoon@aanet.com.au> <4C545E5A.2010402@jboecker.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=37469 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OfMpZ-0003dr-7Q for emacs-orgmode@gnu.org; Sat, 31 Jul 2010 20:55:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OfMpX-0007UY-1w for emacs-orgmode@gnu.org; Sat, 31 Jul 2010 20:55:09 -0400 Received: from poplet2.per.eftel.com ([203.24.100.45]:55474) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OfMpW-0007UT-Mn for emacs-orgmode@gnu.org; Sat, 31 Jul 2010 20:55:07 -0400 In-Reply-To: <4C545E5A.2010402@jboecker.de> 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: Jan =?ISO-8859-1?Q?B=F6cker?= Cc: emacs-orgmode@gnu.org On Sat, 31 Jul 2010 19:33:14 +0200 Jan B=F6cker wrote: > On 07/31/2010 08:32 AM, Typhoon wrote: > >=20 > > 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. > >=20 > > Nice trick on the zero-space - That would be OK, I suppose, but like > > you say, a bit tedious after a while. > >=20 >=20 > 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! >=20 > Add the following to your .emacs: >=20 > (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]")))) >=20 > (add-to-list 'org-export-inbuffer-options-extra > '("DISABLE_PLAIN_FOOTNOTES" :no-plain-footnotes)) >=20 > (add-hook 'org-export-preprocess-hook > 'jb/disable-plain-footnotes-hack) >=20 >=20 > To disable plain footnotes, you can now add a line like this to your > Org file: > #+DISABLE_PLAIN_FOOTNOTES: some arbitrary text >=20 > Hope this works and solves your problem for now. Hi Jan, That does it with one minor modification: I needed=20 (load "org-exp.el")=20 before the (add-to-list xxx). Thanks for your help! Cheers, Alan in .emacs in order to make it work. >=20 > Jan >=20 --=20 Alan L Tyree http://www2.austlii.edu.au/~alan Tel: 04 2748 6206