This is the official manual for the latest Org-mode release.
This section explores the internals of the ODT exporter; the means by which it produces styled documents; the use of automatic and custom OpenDocument styles.
The ODT exporter relies on two files for generating its output.
These files are bundled with the distribution under the directory pointed to
by the variable
org-odt-styles-dir. The two files are:
This file contributes to the styles.xml file of the final ‘ODT’ document. This file gets modified for the following purposes:
This file contributes to the content.xml file of the final ‘ODT’ document. The contents of the Org outline are inserted between the ‘<office:text>’...‘</office:text>’ elements of this file.
Apart from serving as a template file for the final content.xml, the file serves the following purposes:
The following two variables control the location from where the ODT exporter picks up the custom styles and content template files. Customize these variables to override the factory styles used by the exporter.
The ODT export back-end uses the file pointed to by this variable, such as styles.xml, for the final output. It can take one of the following values:
Use this file instead of the default styles.xml
Use the styles.xml contained in the specified OpenDocument Text or Template file
Use the styles.xml contained in the specified OpenDocument Text or Template file. Additionally extract the specified member files and embed those within the final ‘ODT’ document.
Use this option if the styles.xml file references additional files like header and footer images.
Use the default styles.xml
Use this variable to specify the blank content.xml that will be used in the final output.