emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Christian Moe <christian.moe@hf.uio.no>
Cc: Emacs-orgmode@gnu.org
Subject: Re: [BUG] [ODT] Subtree export gives wrong footnote style
Date: Fri, 29 Mar 2013 13:51:52 +0100	[thread overview]
Message-ID: <87zjxmweqf.fsf@gmail.com> (raw)
In-Reply-To: <m2a9pn20i1.fsf@christianmoe.com> (Christian Moe's message of "Thu, 28 Mar 2013 13:05:10 +0100")

Hello,

Christian Moe <christian.moe@hf.uio.no> 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

  reply	other threads:[~2013-03-29 12:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-28 12:05 [BUG] [ODT] Subtree export gives wrong footnote style Christian Moe
2013-03-29 12:51 ` Nicolas Goaziou [this message]
2013-03-29 14:22   ` Christian Moe
2013-03-29 22:15     ` Nicolas Goaziou
2013-03-30  8:11       ` Christian Moe
2013-04-01  8:02         ` Nicolas Goaziou
2013-04-01 12:02           ` Christian Moe
2013-04-01 15:35             ` Nicolas Goaziou
2013-04-01 18:37               ` Christian Moe
2013-04-01 22:09                 ` Nicolas Goaziou
2013-04-02  7:09                   ` Christian Moe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zjxmweqf.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=Emacs-orgmode@gnu.org \
    --cc=christian.moe@hf.uio.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).