From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Exporting footnotes Date: Sat, 12 Feb 2011 16:59:16 +0100 Message-ID: <87fwrtnt0r.fsf@altern.org> References: <4D4528A5.1020700@cs.rpi.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=35482 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PoHsQ-0008IK-UF for emacs-orgmode@gnu.org; Sat, 12 Feb 2011 10:59:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PoHsO-0007yO-K4 for emacs-orgmode@gnu.org; Sat, 12 Feb 2011 10:59:14 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:36496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PoHsN-0007wq-QI for emacs-orgmode@gnu.org; Sat, 12 Feb 2011 10:59:12 -0500 Received: by bwz16 with SMTP id 16so4112615bwz.0 for ; Sat, 12 Feb 2011 07:59:10 -0800 (PST) In-Reply-To: <4D4528A5.1020700@cs.rpi.edu> (Ethan Glasser-Camp's message of "Sun, 30 Jan 2011 04:00:21 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ethan Glasser-Camp Cc: emacs-orgmode@gnu.org Hi Ethan, Ethan Glasser-Camp writes: > I've been playing with the HTML export and it's pretty cool. I just have > one quibble, which is that footnotes are always put at the end of the > document. I'd like them to be at the end of each item, which is where I put > them in my org file -- i.e. I've set org-footnote-section to nil. > > I poked around in the code and it looks like the footnotes are being > normalized, and the normalization function is putting them all at the end > of the document. Normalization is necessary for the names of footnotes, but > I think it is too aggressive about moving footnotes. I agree. > Are there exporters for which collecting footnotes in one place is > necessary? I think org-export-as-html could handle keeping the > footnotes where they are with minimal changes. > > Attached is a sketchy patch that does what I want. It's an ugly hack. What > do you think? I tested the patch and it does what you want, thanks for it. It doesn't break footnotes export in LaTeX (good thing!). I didn't test for other exporters. However, it seems to me that org-footnote-normalize does the right thing when putting every footnotes at a single place -- at least, there should be a footnote section, even when footnotes live within a subtree. It'll make life easier for exporter. If you don't mind, I first want to do some work on the generic exporter to decide how to implement your idea. Thanks! -- Bastien