emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Need extra text in ODT export of headers


From: Jambunathan K
Subject: Re: [O] Need extra text in ODT export of headers
Date: Sun, 09 Feb 2014 10:01:14 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

This is what I tried and I have LibreOffice 4.1.3.2 on Debian.  See
attachments for what I mean down below.

1. Export test.org to test.odt
2. Open test.odt, fix outline numbering and save as test.ott
3. Copy test.org to test-styled.org and apply test.ott as ODT_STYLES_FILE.
4. Export test-styled.org to test-styled.odt
5. I see that test-styled.odt has the required outline numbering.

   Don't be fooled by the numbering in TOC.  The TOC is not in sync with
   what the style says.  Just update the TOC (i.e., Update All) and
   everything will be just fine.

I am assuming that what I show here - with some variations thereof - is
what the OP wants to achieve.

Attachment: test-styled.odt
Description: application/vnd.oasis.opendocument.text

Attachment: test-styled.org
Description: Text Data

Attachment: test.ott
Description: application/vnd.oasis.opendocument.text-template

Attachment: test.odt
Description: application/vnd.oasis.opendocument.text

Attachment: test.org
Description: Text Data



Christian Moe <address@hidden> writes:

> 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 <address@hidden> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]