[Top][All Lists]

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

[O] [PATCH] Improve usage of odt content templates

From: Christian Kellermann
Subject: [O] [PATCH] Improve usage of odt content templates
Date: Mon, 19 May 2014 12:42:54 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Hi all,

I have been using org-mode's odt exporter heavily for the last days
with the attached patches. These scratch an itch I have and I submit
them to this list in the hope of being useful to others.


I am using the odt exporter to fill in a project description document
at work with has strict specified layout and template. Fortunately
just using an existing empty document and org-mode's content template
setting is sufficient for my needs to create the OO documents without
having to touch OpenOffice. However the current master code misses
two things I need:

* Possibility to override the globally defined
org-odt-content-template-file variable in the document

* Avoid inserting the document title as the first thing in the
document contents, as there already is a title set in a title page
in the template. As org-mode already sets the title data tag this
can be used in the template to generate the correct title. However
inserting the title as text is not desireable in that scenario.

I have attached patches that address these two issues. The latter
adds yet another option to the exporter mode to suppress title

I offer these patches as the base of a discussion as I am not sure
whether these small changes fit the overall "org-mode" way. Or maybe
there already is an easier way to achieve what I want, I don't know.

As these are my first org-mode patches I hope I have read the
guidelines for commit messages correctly. I am grateful for any
comments or advise you may have.

Kind regards,


May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

Attachment: 0001-ox-odt-Expose-content-template-file-setting.patch
Description: Text document

Attachment: 0002-ox-odt-Optionally-suppress-title-insertion.patch
Description: Text document

reply via email to

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