From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [BUG] [ODT] Subtree export gives wrong footnote style Date: Fri, 29 Mar 2013 13:51:52 +0100 Message-ID: <87zjxmweqf.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULYmm-000802-Lw for Emacs-orgmode@gnu.org; Fri, 29 Mar 2013 08:52:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULYmk-0002gW-NS for Emacs-orgmode@gnu.org; Fri, 29 Mar 2013 08:52:00 -0400 Received: from mail-wg0-f53.google.com ([74.125.82.53]:56403) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULYmk-0002gJ-Hb for Emacs-orgmode@gnu.org; Fri, 29 Mar 2013 08:51:58 -0400 Received: by mail-wg0-f53.google.com with SMTP id c11so404547wgh.32 for ; Fri, 29 Mar 2013 05:51:57 -0700 (PDT) In-Reply-To: (Christian Moe's message of "Thu, 28 Mar 2013 13:05:10 +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: Christian Moe Cc: Emacs-orgmode@gnu.org Hello, Christian Moe writes: > 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. I see where the problem lies. In order to implement an appropriate fix, I need to know the answer of the following problem: In regular contents, paragraphs within centered blocks get the "OrgCenter" style. So, in the following example: Para 1 #+begin_center Para 2 #+end_center style for "Para 1" (resp. "Para 2") is "Text_20_body" (resp. "OrgCenter"). Now consider the following example where everything is located within a footnote definition: [fn:1] Para 1 #+begin_center Para 2 #+end_center "Para 1" obviously gets "Footnote" as style. I'm not sure about "Para 2". What is the appropriate style for it? Regards, -- Nicolas Goaziou