From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: headings in odt export Date: Mon, 24 Aug 2015 19:44:45 +0800 Message-ID: <87r3ms9ahe.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57229) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTqBb-0006ak-0o for emacs-orgmode@gnu.org; Mon, 24 Aug 2015 07:45:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTqBX-0002tG-Rg for emacs-orgmode@gnu.org; Mon, 24 Aug 2015 07:45:10 -0400 Received: from plane.gmane.org ([80.91.229.3]:41575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTqBX-0002ss-Ki for emacs-orgmode@gnu.org; Mon, 24 Aug 2015 07:45:07 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZTqBT-0007gS-6a for emacs-orgmode@gnu.org; Mon, 24 Aug 2015 13:45:03 +0200 Received: from 111.199.228.171 ([111.199.228.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Aug 2015 13:45:03 +0200 Received: from eric by 111.199.228.171 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Aug 2015 13:45:03 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain 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 --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=style.diff 35c35 < --- > 40c40 < --- > 45c45 < --- > 50c50 < --- > 55c55 < --- > 60c60 < --- > 65c65 < --- > 70c70 < --- > 75c75 < --- > 80c80 < --- > --=-=-=--