【问题标题】:Rmarkdown to Word output - insert page number for word documentRmarkdown到Word输出 - 为word文档插入页码
【发布时间】:2018-05-28 07:15:38
【问题描述】:

我正在编辑一个 Rmarkdown 文件,我想知道是否有解决方案可以在 rmd 文件中插入 word 的页码,该文件将输出到 word 文档。

---
title: "title"
output:
word_document:
    reference_docx: ../template/template.docx

【问题讨论】:

  • 你好@Minyi Han。你设法给页数编号了吗?

标签: r markdown r-markdown


【解决方案1】:

在 MS Word 中,编辑 Word 模板文件 (../template/template.docx) 的页眉或页脚,以包含页码的 Word 占位符。这不仅会提供页码,而且会在文档被编辑或重新格式化时更新。

【讨论】:

  • rmarkdown.rstudio.com/articles_docx.html有关于如何创建和使用word模板文件的说明。
  • 你好,DonJ。如何在 word 中放置占位符?
  • @itamar,在 Word 2007 中,它是功能区“插入”,按钮“页码”。
  • 谢谢@A.Donda
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-08-31
  • 2016-01-06
相关资源
最近更新 更多