编辑:
我再次安装了以前版本的软件包(版本0.2.1),问题就解决了。
__
我正在用officedown包做一个Rmarkdown报告。
我的Word输出很好地导入了模板文档的Word Styles,但没有导入相同模板的页边距、页眉或页脚,是否更改了sintax?,以下是报告的YAML:
---
output:
officedown::rdocx_document:
reference_docx: template.docx
--- 当模板与officer包一起使用时,或者与“正常”字输出一起使用时,效果很好,如下所示:
---
output:
word_document:
reference_docx: template.docx
---有什么想法吗?
非常感谢你的帮助,我在过去的一年里用了很多officeverse包,这些包太棒了。
发布于 2021-07-05 15:52:57
我也遇到过同样的问题,但是您可以像Officeverse book中提到的那样在YAML头中设置这些参数。
单位(英寸)
output:
officedown::rdocx_document:
page_size:
width: 8.3
height: 11.7
orient: "portrait"
page_margins:
bottom: 1
top: 1
right: 1.25
left: 1.25
header: 0.5
footer: 0.5
gutter: 0.5 https://stackoverflow.com/questions/67259932
复制相似问题