From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Stewart Subject: Fwd: Don't treat [n] as a footnote, and export "[n]" Date: Thu, 23 Apr 2015 20:27:36 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlMn0-0004HR-OO for emacs-orgmode@gnu.org; Thu, 23 Apr 2015 15:27:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlMmz-0000KD-In for emacs-orgmode@gnu.org; Thu, 23 Apr 2015 15:27:58 -0400 Received: from mail-lb0-x235.google.com ([2a00:1450:4010:c04::235]:34751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlMmz-0000K5-B2 for emacs-orgmode@gnu.org; Thu, 23 Apr 2015 15:27:57 -0400 Received: by lbcga7 with SMTP id ga7so20935554lbc.1 for ; Thu, 23 Apr 2015 12:27:56 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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 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