From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: [BUG] [ODT] Subtree export gives wrong footnote style Date: Thu, 28 Mar 2013 13:05:10 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULBzh-0005Yo-OG for Emacs-orgmode@gnu.org; Thu, 28 Mar 2013 08:31:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULBze-0003cg-UO for Emacs-orgmode@gnu.org; Thu, 28 Mar 2013 08:31:49 -0400 Received: from mail2.b1.hitrost.net ([91.185.211.205]:29410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULBze-0003cI-Ny for Emacs-orgmode@gnu.org; Thu, 28 Mar 2013 08:31:46 -0400 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, The new ODT exporter sometimes, but not always fails to put footnotes in Footnote style as expected. They are left in Text Body, which is wrong (and surprisingly difficult to fix in LibreOffice). After a bit of trial and failure, it seems the error depends on the scope of export: Exporting the whole buffer gives correct footnote style. Exporting a subtree only fails to give the correct style -- *unless* the footnote is included in the subtree. In the example below, I actually get a mix of stylesm depending on whether the footnote is defined in the exported section or outside it. Org-mode is clearly able to find both footnotes, and recognize them as footnotes, so I'm baffled at the different styling. ---------Begin example #+TITLE: Test ODT footnote style #+OPTIONS: num:nil toc:nil * This is a heading This is a bit of body text.[fn:1] It has footnotes.[fn:2] [fn:1] This is a footnote I have placed in the same section that I am exporting. It is in Footnote style (correct). * Footnotes [fn:2] This is a footnote in a footnote section. When I export the section above as a subtree, this footnote is in Text Body (wrong). When I export the whole document, it's in Footnote style (correct). ---------End example Yours, Christian