From: "Jan Böcker" <jan.boecker@jboecker.de>
To: Typhoon <typhoon@aanet.com.au>
Cc: emacs-orgmode@gnu.org
Subject: Re: Footnote export
Date: Sat, 31 Jul 2010 19:33:14 +0200 [thread overview]
Message-ID: <4C545E5A.2010402@jboecker.de> (raw)
In-Reply-To: <20100731163222.892a731a.typhoon@aanet.com.au>
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
next prev parent reply other threads:[~2010-07-31 17:33 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 [this message]
2010-08-01 0:56 ` Typhoon
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=4C545E5A.2010402@jboecker.de \
--to=jan.boecker@jboecker.de \
--cc=emacs-orgmode@gnu.org \
--cc=typhoon@aanet.com.au \
/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.