我正在尝试手动更改 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>
有没有人有任何想法?我查看了官员包,但据我所知,这仅在文件呈现后才有效。