From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug, patch, ox] INCLUDE and footnotes Date: Wed, 10 Dec 2014 12:21:19 +0100 Message-ID: <87d27rbvio.fsf@nicolasgoaziou.fr> References: <87h9x5hwso.fsf@gmx.us> <87oarcbppe.fsf@nicolasgoaziou.fr> <87fvcozfhf.fsf@gmx.us> <87h9x4bj33.fsf@nicolasgoaziou.fr> <87iohks4ne.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyfJt-0002Ia-2p for emacs-orgmode@gnu.org; Wed, 10 Dec 2014 06:20:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XyfJk-0002HW-2V for emacs-orgmode@gnu.org; Wed, 10 Dec 2014 06:20:36 -0500 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:40625) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyfJj-0002F0-SR for emacs-orgmode@gnu.org; Wed, 10 Dec 2014 06:20:28 -0500 In-Reply-To: <87iohks4ne.fsf@gmx.us> (rasmus@gmx.us's message of "Wed, 10 Dec 2014 01:57:25 +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: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: > Nicolas Goaziou writes: >> I think required definitions should be extracted from the included file >> and inserted at the end of the source file, without any footnote >> section. > > The "hard" solution. I will look into it. It may not be that hard, but it will require tests. You also need to check that the footnote definition doesn't appear within included area, in which case it needs not be moved. >> However, it would be nice to store associations between files >> and footnote labels in, e.g., a hash table, in order to avoid inserting >> multiple times the same footnote. > > What is your reasoning for this statement? Aesthetics, performance or > something else? Mainly performance, and to prevent some bugs that might be introduced with duplicate footnote definitions. The can is open, the worms wiggling. Have fun. Regards,