Next: , Previous: , Up: OpenDocument Text Exporter for Emacs’ Org Mode   [Contents][Index]


5 Extending ODT export

The ODT exporter can interface with a variety of document converters and supports popular converters out of the box. As a result, you can use it to export to formats like ‘doc’ or convert a document from one format (say ‘csv’) to another format (say ‘ods’ or ‘xls’).

If you have a working installation of LibreOffice, a document converter is pre-configured for you and you can use it right away. If you would like to use ‘unoconv’ as your preferred converter, customize the variable ‘org-odt-convert-process’ to point to ‘unoconv’. You can also use your own favorite converter or tweak the default settings of the LibreOffice and ‘unoconv’ converters. See Configuring a document converter.


5.1 Automatically exporting to other formats

Very often, you will find yourself exporting to ODT format, only to immediately save the exported document to other formats like ‘doc’, ‘docx’, ‘rtf’, ‘pdf’ etc. In such cases, you can specify your preferred output format by customizing the variable ‘org-odt-preferred-output-format’. This way, the export commands (see Exporting to ODT) can be extended to export to a format that is of immediate interest to you.


5.2 Converting between document formats

There are many document converters in the wild which support conversion to and from various file formats, including, but not limited to the ODT format. LibreOffice converter, mentioned above, is one such converter. Once a converter is configured, you can interact with it using the following command.

M-x org-odt-convert

Convert an existing document from one format to another. With a prefix argument, also open the newly produced file.


Next: , Previous: , Up: OpenDocument Text Exporter for Emacs’ Org Mode   [Contents][Index]