From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: footnotes position in html export Date: Sun, 08 Nov 2015 16:11:03 +0100 Message-ID: <87ziyo7chk.fsf@nicolasgoaziou.fr> References: <20151108105301.GA6295@x1-orm> <87ziyoyce4.fsf@gmx.us> <20151108115511.GC6295@x1-orm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvRaq-0002a4-Ht for emacs-orgmode@gnu.org; Sun, 08 Nov 2015 10:09:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZvRap-0007EX-M6 for emacs-orgmode@gnu.org; Sun, 08 Nov 2015 10:09:20 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:36477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvRap-0007ES-Fv for emacs-orgmode@gnu.org; Sun, 08 Nov 2015 10:09:19 -0500 In-Reply-To: <20151108115511.GC6295@x1-orm> (Orm Finnendahl's message of "Sun, 8 Nov 2015 12:55:11 +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: Orm Finnendahl Cc: emacs-orgmode@gnu.org Hello, Orm Finnendahl writes: > ok, thanks. I'll look into it. Maybe it's not too hard to > implement. It shouldn't. Basically, you need to: 1. Add an optional argument to `org-html-footnote-section' specifying the scope of footnotes, skip `org-export-collect-footnote-definitions' altogether and use `org-element-map' to find "first footnotes references" (see `org-export-footnote-first-reference-p') in the scope. Then with `org-export-get-footnote-definition', you can build the footnote section. 2. Call `org-html-footnote-section' from `org-html-section', with the parent headline, if any, or the current section otherwise as the current scope. 3. Create a new variable to toggle behaviour of footnotes. HTH, Regards, -- Nicolas Goaziou