3.5 OpenDocument Text document

To create an OpenDocument Text (ODT) document from R Markdown, you specify the odt_document output format in the YAML metadata of your document:

---
title: "Habits"
author: John Doe
date: March 22, 2005
output: odt_document
---

Similar to word_document, you can also provide a style reference document to odt_document throught the reference_odt option. For best results, the reference ODT document should be a modified version of an ODT file produced using rmarkdown or Pandoc. For example:

---
title: "Habits"
output:
  odt_document:
    reference_odt: my-styles.odt
---

3.5.1 Other features

Refer to Section 3.1 for the documentation of most features of ODT documents, including figure options (Section 3.1.5), keeping Markdown (Section 3.1.10.1), header and before/after body inclusions (Section 3.1.10.2), custom templates (Section 3.1.10.3), Markdown extensions (Section 3.1.10.4), Pandoc arguments (Section 3.1.10.5), and shared options (Section 3.1.11).