emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Footnote export


From: Typhoon
Subject: Re: [Orgmode] Footnote export
Date: Sun, 1 Aug 2010 10:56:57 +1000

On Sat, 31 Jul 2010 19:33:14 +0200
Jan Böcker <address@hidden> wrote:

> 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.

Hi Jan,
That does it with one minor modification: I needed 

(load "org-exp.el") 

before the (add-to-list xxx).

Thanks for your help!

Cheers,
Alan

in .emacs in order to make it work.

> 
> Jan
> 


-- 
Alan L Tyree                    http://www2.austlii.edu.au/~alan
Tel:  04 2748 6206




reply via email to

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