all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christian Moe <christian.moe@hf.uio.no>
To: Emacs-orgmode@gnu.org
Subject: [BUG] [ODT] Subtree export gives wrong footnote style
Date: Thu, 28 Mar 2013 13:05:10 +0100	[thread overview]
Message-ID: <m2a9pn20i1.fsf@christianmoe.com> (raw)


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

             reply	other threads:[~2013-03-28 12:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-28 12:05 Christian Moe [this message]
2013-03-29 12:51 ` [BUG] [ODT] Subtree export gives wrong footnote style Nicolas Goaziou
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

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

  git send-email \
    --in-reply-to=m2a9pn20i1.fsf@christianmoe.com \
    --to=christian.moe@hf.uio.no \
    --cc=Emacs-orgmode@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.