在RMarkdown中更改Word文档样式

时间:2019-02-26 14:13:59

标签: ms-word r-markdown pandoc bookdown officer

我正在尝试手动更改R-markdown文档中的样式。在下面的示例中,我创建了一个名为reference_docx

的样式Highlight

img

--- 
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程序包,但据我所知,这仅在文档呈现后才有效。

0 个答案:

没有答案
相关问题