From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: Need extra text in ODT export of headers Date: Tue, 04 Feb 2014 10:09:17 +0100 Message-ID: References: <87ppn3y4go.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAbyL-0006ja-Mm for emacs-orgmode@gnu.org; Tue, 04 Feb 2014 04:07:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WAby8-0000jR-9b for emacs-orgmode@gnu.org; Tue, 04 Feb 2014 04:07:13 -0500 Received: from mail-forward1.uio.no ([2001:700:100:10::70]:56115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAby7-0000L0-VF for emacs-orgmode@gnu.org; Tue, 04 Feb 2014 04:07:00 -0500 Received: from exim by mail-out1.uio.no with local-bsmtp (Exim 4.75) (envelope-from ) id 1WAbxK-0003wC-DW for emacs-orgmode@gnu.org; Tue, 04 Feb 2014 10:06:10 +0100 In-reply-to: <87ppn3y4go.fsf@gmail.com> 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: Jambunathan K Cc: Dan Griswold , Emacs-orgmode , Christian Moe Hi, Jambunathan, I was going to tell Dan the same thing, but for some reason, the below doesn't work for me with outline numbering. Can you confirm that it works for you? When I try, the paragraph styles from the template *do* get applied (tested by coloring some headings), but the custom outline numbering does not. To see if it ought to, I also tried to "load styles" from the OTT into an ODT document, but again, custom outline numbering did not follow along, so I'm not sure if it should be expected to work with Org ODT export either. Yours, Christian Jambunathan K writes: > The following message is a courtesy copy of an article > that has been posted to gmane.emacs.orgmode as well. > > Dan Griswold writes: > >> The only downside right now seems to be that I have to do the outline >> numbering for each file in the manuscript. But there are only 9 of >> them. > > You just need to create a opendocument template file and have all the > org file use it. > > See > > (info "(org) Applying custom styles") > > 1. Export ONE document. > 2. Fix outline numbering > 3. Save the file as say custom-style.ott (Note: It is OTT and not ODT) > 4. Add a directive to ALL THE OTHER org file as below. > > M-x org-export-insert-default-template odt > > and modify the ODT_STYLES_FILE directive as below. > > #+ODT_STYLES_FILE: "~/a/b/custom-style.ott" > > 5. Now if I export the org files with (4), you will get the outline > numbering that you desire.