通过pdf格式更改Rmarkdown中的字输出格式

时间:2016-11-25 03:16:45

标签: r pdf ms-word knitr r-markdown

是否有可能在单词中更改控制台的输入和输出格式?

PDF中的输出格式在控制台的输入和输出之间有所不同 The output format in PDF differs between an input and output of the console

word中的输出格式具有相同的输入和输出格式。 The output format in word has the same format for both input and output.

我尝试使用word的模板选项,但我没有找到解决方法。

1 个答案:

答案 0 :(得分:0)

不完全符合您要求的一个选项,但是下面的一步

从输出选项(编织单词按钮旁边,单击下拉列表)时,选择语法高亮显示为单色。

这将使您的输出全部采用一种格式。接下来选择你的代码块并按照你在Word中常用的方式突出显示它们

相关问题