emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Fwd: Don't treat [n] as a footnote, and export "[n]"


From: Rob Stewart
Subject: [O] Fwd: Don't treat [n] as a footnote, and export "[n]"
Date: Thu, 23 Apr 2015 20:27:36 +0100

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 <address@hidden>
Date: 23 April 2015 at 20:10
Subject: Don't treat [n] as a footnote, and export "[n]"
To: address@hidden


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



reply via email to

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