From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [bug, patch, ox] INCLUDE and footnotes Date: Tue, 09 Dec 2014 22:21:32 +0100 Message-ID: <87fvcozfhf.fsf@gmx.us> References: <87h9x5hwso.fsf@gmx.us> <87oarcbppe.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XySEZ-0006Tn-0J for emacs-orgmode@gnu.org; Tue, 09 Dec 2014 16:22:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XySES-0006al-1T for emacs-orgmode@gnu.org; Tue, 09 Dec 2014 16:22:13 -0500 Received: from mout.gmx.net ([212.227.17.20]:50240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XySER-0006ZT-Ny for emacs-orgmode@gnu.org; Tue, 09 Dec 2014 16:22:07 -0500 Received: from W530 ([109.201.154.163]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MJXEd-1Xzpnz32nz-0032Ac for ; Tue, 09 Dec 2014 22:21:50 +0100 In-Reply-To: <87oarcbppe.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Tue, 09 Dec 2014 20:14:37 +0100") 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 Hi, Nicolas Goaziou writes: > First `org-footnote-section' could be nil, in which case there is no > headline to look after. Sure. > Also, there may be multiple footnote sections in the included document, > or even some footnote definitions inside and some outside the single > section... Multiple footnote sections are supported in the second revision of the patch... > You should only extract the definitions associated to the references > within the included part of the document. However, you cannot insert > them right after the included text, as it could break the surrounding > environment, e.g., > > - item > > #+INCLUDE: some-table.org > > A possible solution would be to somehow postpone insertion of footnotes > at the very end of the source document, not at the location of the > keyword. However it would need some testing. Right, I note something similar in my second post. http://permalink.gmane.org/gmane.emacs.orgmode/93299 Clearly the current situation is not satisfactory ("You can use :lines, but only if no footnotes are present. . . IOW, :lines supports a subset of Org syntax."). I prefer converting [fn:N] references to [fn::FOOTNOTE] (see my other email). Any obvious downsides? =E2=80=94Rasmus --=20 Vote for proprietary math!