在Rmarkdown中更改Knitr的Word模板 [英] Changing word template for knitr in Rmarkdown

查看:305
本文介绍了在Rmarkdown中更改Knitr的Word模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Rstudio制作降价文档,我想将其转换为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的Word模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆