I am editing a Rmarkdown file, I want to know is there a solution to insert page numbers for word in rmd file which will output to a word document.
---
title: "title"
output:
word_document:
reference_docx: ../template/template.docx
In MS Word, edit the header or footer of your word template file (../template/template.docx
) to include a Word placeholder for the page number. Not only will that provide page numbers, but they will update if the document is edited or reformatted.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With