> I agree with Mehul it would be great to have an option to specify a 
> styles file on a per-file basis. Something like:
>
>    #+ODT_STYLE: ~/org/odt-templates/cv.odt

I have gone with `#+ODT_STYLES_FILE: '[1]. Refer the docstring below for a
sample setting.

,----[ C-h v org-export-odt-styles-file RET ]
| org-export-odt-styles-file is a variable defined in `org-odt.el'.
| Its value is nil
| 
| Documentation:
| Default styles file for use with ODT export.
| Valid values are one of:
| 1. nil
| 2. path to a styles.xml file
| 3. path to a *.odt or a *.ott file
| 4. list of the form (ODT-OR-OTT-FILE (FILE-MEMBER-1 FILE-MEMBER-2
| ...))
| 
| [snip]
| 
| Use "#+ODT_STYLES_FILE: ..." directive to set this variable on
| a per-file basis.  For example,
| 
| #+ODT_STYLES_FILE: "/path/to/styles.xml" or
| #+ODT_STYLES_FILE: ("/path/to/file.ott" ("styles.xml" "image/hdr.png")).
| 
| You can customize this variable.
`----

Hope it is OK.

Footnotes: 
[1] The name of the option is same as the upcased custom variable name
with `org-export-' prefix stripped. The same convention can be used for
any "future" per-file odt settings.
-- 

Reply via email to