I'm in an org that likes to cram as much info onto each page of a Word document as possible. For example, they prefer to show the document Title, Date, Author in headers/footers rather than in the body of the document. I can display these fields in the headers/footers of a Word document compiled from bookdown by creating a .docx template and adding the Word field codes TITLE, CREATEDATE, and AUTHOR to the desired locations in headers/footers of the .docx template. This works great. But the problem is that when I compile to Word, the Title, Date, and Author still show in the body of the Word document. This persists even if I delete them from the body of the .docx template. Yes, I can easily delete these from the output Word doc before sharing. But it would be nice if I could have a single .docx template which got things just right. Is there a straightforward way to do this?
UPDATE: I don't want to leave the title
, date
, and author
fields blank in the Rmd YAML header because I still want them to appear in particular spots in the headers/footers of the docx output and appear as they normally would in the pdf output.