From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: org-odt: turning off section numbering does not work Date: Tue, 18 Oct 2011 17:35:11 +0530 Message-ID: <81fwiqsdxk.fsf@gmail.com> References: <4E9C5863.5050505@christianmoe.com> <4443.1318874420@alphaville.americas.hpqcorp.net> <4E9C7ED3.6070009@christianmoe.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RG8QQ-0008PF-JN for emacs-orgmode@gnu.org; Tue, 18 Oct 2011 08:05:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RG8QO-0006Am-Q9 for emacs-orgmode@gnu.org; Tue, 18 Oct 2011 08:05:42 -0400 Received: from mail-pz0-f47.google.com ([209.85.210.47]:55673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RG8QO-0006Ab-JC for emacs-orgmode@gnu.org; Tue, 18 Oct 2011 08:05:40 -0400 Received: by pzd13 with SMTP id 13so1520505pzd.6 for ; Tue, 18 Oct 2011 05:05:39 -0700 (PDT) In-Reply-To: <4E9C7ED3.6070009@christianmoe.com> (Christian Moe's message of "Mon, 17 Oct 2011 21:15:31 +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: mail@christianmoe.com Cc: emacs-orgmode@gnu.org Hello Christian Christian Moe writes: > That probably explains it, then. > > But, uh, can I borrow this thread for a moment? > > I find custom styles in ODT export aren't working as per the manual, > section 12.8.2. Here's what I've done (test files attached; Emacs > 23.3.1; Org 7.7, freshly pulled): > > 1. Exported test-odt.org to ODT with default settings. > 2. In OpenOffice: Changed the Heading 1 style in the exported ODT > document to red, then saved it as styles.odt. When you are generating such a custom styles file for templating purposes, it is highly desirable that H:10 num:t be option used. This is because the Org's odt exporter expects that the default styles file has outline numbering turned on for all levels (Number 10 above being the max outline levels in styles.xml) If this assumption is violated - ie if the template file is generated with num:nil (which is the case with the styles file circulated by you) - then subsequently changing the #+OPTIONS: num:t will continue to produce the unnumbered headings contrary to the expectations. I believe the above restriction is not overly restrictive. > 3. Pointed org-export-odt-styles-file to styles.odt. > 4. Exported test-odt.org to test-odt.odt. Result: no headings at all > -- everything's in the Default style. > > This is how I understand the manual, and the thread I referenced > before, and I remember having tested it before at some point when it > worked perfectly, so I'm rubbing my eyes and wondering if it's just > me. Could I ask someone to please check? I have pushed a fix for this moment ago. Hope things are OK with your setup. Jambunathan K. > Yours, > Christian > > > On 10/17/11 8:31 PM, Mehul Sanghvi wrote: >> On Mon, Oct 17, 2011 at 14:00, Nick Dokos wrote: >>> >>> My (factually-baseless but best-that-I-can-do given the paucity >>> of information you provide) guess is that you are not running the >>> version you think you are running. >>> >>> Nick >>> >> >> >> What I have is Org-mode version 7.5 (baseline.533.ga5129.dirty), so it seems >> your factually-baseless guess is correct. >> >> >> % git remote -v >> origin http://repo.or.cz/r/org-mode/org-jambu.git (fetch) >> origin http://repo.or.cz/r/org-mode/org-jambu.git (push) >> >> >> I have been pulling from the wrong repository. >> >> >> cheers, >> >> mehul >> >> > > > > --