From mboxrd@z Thu Jan 1 00:00:00 1970 From: Orm Finnendahl Subject: Re: footnotes position in html export Date: Sun, 8 Nov 2015 17:34:11 +0100 Message-ID: <20151108163411.GB14748@x1-orm> References: <20151108105301.GA6295@x1-orm> <87ziyoyce4.fsf@gmx.us> <20151108115511.GC6295@x1-orm> <87ziyo7chk.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvSv8-0004rB-Mt for emacs-orgmode@gnu.org; Sun, 08 Nov 2015 11:34:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZvSv5-0001fb-Gf for emacs-orgmode@gnu.org; Sun, 08 Nov 2015 11:34:22 -0500 Received: from selma.hfmdk-frankfurt.de ([178.63.26.132]:46070 helo=mail.selma.hfmdk-frankfurt.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvSv5-0001fH-Aa for emacs-orgmode@gnu.org; Sun, 08 Nov 2015 11:34:19 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.selma.hfmdk-frankfurt.de (Postfix) with ESMTP id 7B15533821A7 for ; Sun, 8 Nov 2015 17:34:17 +0100 (CET) Received: from mail.selma.hfmdk-frankfurt.de ([127.0.0.1]) by localhost (selma.hfmdk-frankfurt.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9_yJYNe60xTv for ; Sun, 8 Nov 2015 17:34:11 +0100 (CET) Received: from X1-orm (ip-176-198-7-204.hsi05.unitymediagroup.de [176.198.7.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail.selma.hfmdk-frankfurt.de (Postfix) with ESMTPSA id D0D813380C6E for ; Sun, 8 Nov 2015 17:34:11 +0100 (CET) Content-Disposition: inline In-Reply-To: <87ziyo7chk.fsf@nicolasgoaziou.fr> 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, thanks a lot, that sounds quite feasible and your suggestions will probably save me a lot of time! I just started writing the book and first need some more content but will look into coding it while it's growing. I'll post back to the list when I have results in case someone is interested and has a use for it. -- Orm Am Sonntag, den 08. November 2015 um 16:11:03 Uhr (+0100) schrieb Nicolas Goaziou: > 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