Dear Community
I would like to use Rmarkdown and a reference word.docx to easily apply text, figure & table styles and create an company report.
I've successfully customized text styles (e.g. title, heading 1/2, paragraph, ...) and use it in the entire reference document ("update heading 1 to match selection). After knitting, i can see that the customized text styles are applied in the company report. Nice & easy !
I've tried doing the same for table styles (grey color for top row, text centered, ...). I can create or modify an existing table style and apply this new format to the table in my reference document. However, I couldn't find a way to use it in the entire reference document (no possibility to update to match selection = the other tables in my reference document do not change).
Of course, after knitting, the tables in the company report are not updated accordingly.
---
title: "Report"
author: "MB"
date: "December 10, 2019"
output:
bookdown::word_document2:
toc: yes
fig_caption: yes
reference_docx: "Template.docx"
---
A <- c(1,2,3)
B <- c(2,3,4)
df <- data.frame(A,B)
knitr::kable(df)
Any idea how to proceed ? It is not quite straightforward ... Thanks a lot
Michael