emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Moe <christian.moe@hf.uio.no>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: Christian Moe <christian.moe@hf.uio.no>, Emacs-orgmode@gnu.org
Subject: Re: [BUG] [ODT] Subtree export gives wrong footnote style
Date: Sat, 30 Mar 2013 09:11:17 +0100	[thread overview]
Message-ID: <m2mwtltihm.fsf@christianmoe.com> (raw)
In-Reply-To: <87y5d5vonr.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1546 bytes --]


Nicolas Goaziou writes:
> I understood your problem, but I needed to know how deep I had to change
> paragraph styles.

Pardon the noise.

> Would you mind testing the following patch? I added two new styles. Feel
> free to correct them if needed.

* The patch fixes the announced bug. Thank you!

All footnotes appear in Footnote style again, regardless of whether the
footnote definitions are located within the exported subtree.

This is an important fix, I think. The output was difficult to correct
within LibreOffice.


* The new styles don't seem to get applied

Quote and center blocks in footnotes do not get OrgFootnoteQuotations
style in my test. They remain Footnote.

(You didn't add any OrgFootnoteVerse style, but I tried it out anyway. A
verse block inside a footnote appears as OrgVerse.)

I include below a test Org fragment and attach the resulting ODT.


* Testing ODT with footnotes

This is a text, with classical footnotes.[fn:1] Some aspire to
poetry,[fn:2] others just seek typographic effect.[fn:3]

[fn:2] This is another footnote in the same subtree. It's followed by
a bit of doggerel.
#+begin_verse
  I think that I shall never see
  a poem lovely as a tree.
#+end_verse

* Footnotes

[fn:1] This is a footnote. It should be in Footnote style in ODT
export. It's followed by a quote block.
#+begin_quote
  "I see that it is long", said Alice, "but how can a tail be sad?"
#+end_quote

[fn:3] This is a third footnote followed by a center block.
#+begin_center
  Centered text here.
#+end_center


Yours,
Christian


[-- Attachment #2: org.odt --]
[-- Type: application/vnd.oasis.opendocument.text, Size: 9767 bytes --]

  reply	other threads:[~2013-03-30  8:09 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
2013-03-29 14:22   ` Christian Moe
2013-03-29 22:15     ` Nicolas Goaziou
2013-03-30  8:11       ` Christian Moe [this message]
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=m2mwtltihm.fsf@christianmoe.com \
    --to=christian.moe@hf.uio.no \
    --cc=Emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    /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).