Document title, author and date lost when using officedown::rdocx and reference_docx

301 Views Asked by At

If I do not use a word reference file and define tittle , author and date I get the standard title page.

 ---
 title: Report Title 
 author: Ross 
 date: 3/3/2022 
 output: officedown:: rdocx_document
 ---

however if I nominate a company template company_report_template.docx

---
title: Report Title 
author: Ross 
date: 3/3/2022 
output: 
  officedown::rdocx_document:
    reference_docx: company_report_template.docx
---

The title, author and date are printed out in the rendered word document with no style.

It appears the yaml metadata is lost during rendering.

0

There are 0 best solutions below