emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-orgmode@gnu.org
Subject: headings in odt export
Date: Mon, 24 Aug 2015 19:44:45 +0800	[thread overview]
Message-ID: <87r3ms9ahe.fsf@ericabrahamsen.net> (raw)

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

I'm seeing what seems to be a bug:

If I export a simple document to ODT with the following settings:

#+EXPORT_OPTIONS: H:3 num:t

The headings are given a proper heading style.

However if I export with:

#+EXPORT_OPTIONS: H:3 num:nil

The headings appear in "Default Style" (the body text is in "Text
Body"). In short: setting `org-export-with-section-numbers' to a non-nil
value is necessary to get the headings styled with a heading value --
otherwise they're default style.

The "contents.xml" file in the two different versions differs only like
this:

text:style-name="Heading_20_1_unnumbered"

vs

text:style-name="Heading_20_1"

That seems correct. I've attached a diff between the two different
versions of the "styles.xml" file.

I don't know much about ODT format, and don't know what's going on. I
traced `org-odt-headline', and it appeared to be behaving normally.

I'm using git Org, and the current Libreoffice version (on Arch linux)
is 4.4.5-2.

Any hints appreciated!

Eric



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: style.diff --]
[-- Type: text/x-diff, Size: 1889 bytes --]

35c35
<    <text:outline-level-style text:level="1" style:num-suffix=". " style:num-format="1">
---
>    <text:outline-level-style text:level="1" style:num-format="">
40c40
<    <text:outline-level-style text:level="2" style:num-suffix=". " style:num-format="1" text:display-levels="2">
---
>    <text:outline-level-style text:level="2" style:num-format="">
45c45
<    <text:outline-level-style text:level="3" style:num-suffix=". " style:num-format="1" text:display-levels="3">
---
>    <text:outline-level-style text:level="3" style:num-format="">
50c50
<    <text:outline-level-style text:level="4" style:num-suffix=". " style:num-format="1" text:display-levels="4">
---
>    <text:outline-level-style text:level="4" style:num-format="">
55c55
<    <text:outline-level-style text:level="5" style:num-suffix=". " style:num-format="1" text:display-levels="5">
---
>    <text:outline-level-style text:level="5" style:num-format="">
60c60
<    <text:outline-level-style text:level="6" style:num-suffix=". " style:num-format="1" text:display-levels="6">
---
>    <text:outline-level-style text:level="6" style:num-format="">
65c65
<    <text:outline-level-style text:level="7" style:num-suffix=". " style:num-format="1" text:display-levels="7">
---
>    <text:outline-level-style text:level="7" style:num-format="">
70c70
<    <text:outline-level-style text:level="8" style:num-suffix=". " style:num-format="1" text:display-levels="8">
---
>    <text:outline-level-style text:level="8" style:num-format="">
75c75
<    <text:outline-level-style text:level="9" style:num-suffix=". " style:num-format="1" text:display-levels="9">
---
>    <text:outline-level-style text:level="9" style:num-format="">
80c80
<    <text:outline-level-style text:level="10" style:num-suffix=". " style:num-format="1" text:display-levels="10">
---
>    <text:outline-level-style text:level="10" style:num-format="">

             reply	other threads:[~2015-08-24 11:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-24 11:44 Eric Abrahamsen [this message]
2015-08-24 20:09 ` headings in odt export Rasmus
2015-08-25  0:46   ` Eric Abrahamsen
2015-08-25 22:50     ` Rasmus
2015-08-27  3:38       ` Eric Abrahamsen
2015-08-27  8:00         ` Rasmus

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=87r3ms9ahe.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --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 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).