From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: [BUG] [ODT] Subtree export gives wrong footnote style Date: Fri, 29 Mar 2013 15:22:02 +0100 Message-ID: References: <87zjxmweqf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULaGa-0005fx-IA for Emacs-orgmode@gnu.org; Fri, 29 Mar 2013 10:26:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULaGW-0007TU-B7 for Emacs-orgmode@gnu.org; Fri, 29 Mar 2013 10:26:52 -0400 Received: from mail2.b1.hitrost.net ([91.185.211.205]:26313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULaAT-00060c-OB for Emacs-orgmode@gnu.org; Fri, 29 Mar 2013 10:20:33 -0400 In-reply-to: <87zjxmweqf.fsf@gmail.com> 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: Nicolas Goaziou Cc: Christian Moe , Emacs-orgmode@gnu.org Hi, Maybe I'm being obtuse, but I don't understand the relevance of your question to the bug I pointed out. My example had two simple footnotes, neither of which contained any blocks. The only difference between them was that one was located inside the subtree being exported and the other not. They should both simply be in Footnote style. As for the scenario outlined, I see no justification for centering a block inside a footnote. I could see a case for supporting, say, quotes and verse in the footnote context, on the off chance that an Org user would ever want to do that. If so, I guess the best way to go would be to define separate Footnote Quote and Footnote Verse styles, and tell the exporter to use them when such blocks appear inside footnotes. Yours, Christian Nicolas Goaziou writes: > 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,