Chapter 7 Word

To generate a Word document from R Markdown, you can use the output format word_document. If you want to include cross-references in the document, you may consider the output format bookdown::word_document2, as mentioned in Section 3.3.

---
output:
  word_document: default
  bookdown::word_document2: default  # for cross-references
---

From our experience, the most frequently asked questions about Word output are:

  1. How to apply a custom Word template to the document?

  2. How to incorporate changes made in Word into the original R Markdown document?

  3. How to style individual document elements?

We will address these questions in this chapter.