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
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="">