在 Rmarkdown 中更改 knitr 的单词模板 [英] Changing word template for knitr in Rmarkdown
问题描述
我正在使用 Rstudio 制作一个 Markdown 文档,我想将其转换为 Word 文档.我想更改您编织到Word时自动生成的单词模板.例如,当我编织到 word 时,我希望边距变窄.
I'm using Rstudio to make a markdown document which I want to convert to a word document. I would like to change word template that is automatically generated when you knit to Word. For example, I want the margins to be narrow when I knit to word.
我使用的是 Windows 64 位,使用的是 Windows 7.
I'm on a Windows 64 bit, with Windows 7.
推荐答案
我为此任务准备了视频.请看看它是否有帮助.基本上你从任意一个 R Markdown 文档生成一个 Word 文档,然后修改 Word 输出文档中的样式,并使用这个文档作为未来 R Markdown 文档的模板.
I prepared a video for this task. Please see if it helps. Basically you generate a Word document from an arbitrary R Markdown document, then modify the styles in the Word output document, and use this document as the template for future R Markdown documents.
这篇关于在 Rmarkdown 中更改 knitr 的单词模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!