From: Rob Stewart <robstewart57@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Fwd: Don't treat [n] as a footnote, and export "[n]"
Date: Thu, 23 Apr 2015 20:27:36 +0100 [thread overview]
Message-ID: <CA+ZOas+HcDEJaO7hZqHnwtC0JhdRSkOAg0+shUB8PggSVfvdFg@mail.gmail.com> (raw)
In-Reply-To: <CA+ZOasJ1w0K3a_+L8TzDhNvt+t-8uQCraXv9usaq+F7DHmEzsQ@mail.gmail.com>
And just as soon as I send this email, I find the answer:
(setq org-footnote-re
(concat "\\[\\(?:"
;; Match inline footnotes.
(org-re "fn:\\([-_[:word:]]+\\)?:\\|")
;; Match other footnotes.
;; "\\(?:\\([0-9]+\\)\\]\\)\\|"
(org-re "\\(fn:[-_[:word:]]+\\)")
"\\)"))
(setq org-footnote-definition-re
(org-re "^\\[\\(fn:[-_[:word:]]+\\)\\]"))
From http://stackoverflow.com/a/25342297/1526266 .
--
Rob
---------- Forwarded message ----------
From: Rob Stewart <robstewart57@gmail.com>
Date: 23 April 2015 at 20:10
Subject: Don't treat [n] as a footnote, and export "[n]"
To: emacs-orgmode@gnu.org
Hi,
I have the following in an org mode file (that do not want as inline
verbatim inside =foo=) :
int[2] a;
When I try exporting to HTML, I get the error:
org-export-get-footnote-definition: Definition not found for footnote 2
I've seen two solutions online:
http://emacsclub.github.io/html/org_tutorial.html
https://lists.gnu.org/archive/html/emacs-orgmode/2010-07/msg01248.html
The first works for me, i.e.
#+OPTIONS: f:nil
For this, though, the exported HTML omits the "[2]" text, i.e. the HTML is
int a;
How do I turn off footnotes for [n] where n is a number, so that "[n]"
is exported?
Thanks,
--
Rob
next prev parent reply other threads:[~2015-04-23 19:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-23 19:10 Don't treat [n] as a footnote, and export "[n]" Rob Stewart
2015-04-23 19:27 ` Rob Stewart [this message]
2015-04-23 19:40 ` Fwd: " Nicolas Goaziou
2015-04-23 19:49 ` Rob Stewart
2015-04-23 19:53 ` Nicolas Goaziou
2015-04-23 20:03 ` Rob Stewart
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CA+ZOas+HcDEJaO7hZqHnwtC0JhdRSkOAg0+shUB8PggSVfvdFg@mail.gmail.com \
--to=robstewart57@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).