我正在尝试手动更改R-markdown文档中的样式。在下面的示例中,我创建了一个名为reference_docx
Highlight
---
title: "My Title"
output:
bookdown::word_document2:
fig_caption: yes
reference_docx: my_reference.docx
link-citations: no
site: bookdown::bookdown_site
---
# Here is Header 1
I want this text to be in red using the **Highlight** style from the reference document
I have tried
<div style="Highlight">
This text is still not red
</div>
有人有什么想法吗?我查看了officer程序包,但据我所知,这仅在文档呈现后才有效。