all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Typhoon <typhoon@aanet.com.au>
To: "Jan Böcker" <jan.boecker@jboecker.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Footnote export
Date: Sun, 1 Aug 2010 10:56:57 +1000	[thread overview]
Message-ID: <20100801105657.38b53ca8.typhoon@aanet.com.au> (raw)
In-Reply-To: <4C545E5A.2010402@jboecker.de>

On Sat, 31 Jul 2010 19:33:14 +0200
Jan Böcker <jan.boecker@jboecker.de> 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	other threads:[~2010-08-01  0:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-31  3:17 Footnote export Typhoon
2010-07-31  5:27 ` Jan Böcker
2010-07-31  6:32   ` Typhoon
2010-07-31 17:33     ` Jan Böcker
2010-08-01  0:56       ` Typhoon [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100801105657.38b53ca8.typhoon@aanet.com.au \
    --to=typhoon@aanet.com.au \
    --cc=emacs-orgmode@gnu.org \
    --cc=jan.boecker@jboecker.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.