【问题标题】:Text Justification in Rmarkdown word documentRmarkdown word文档中的文本对齐
【发布时间】:2015-07-26 03:31:27
【问题描述】:

当我在 Rmarkdown 中创建 word 文档时,文本总是左对齐:

是否有可能(以及如何)证明 Rmarkdown 中的文本?

【问题讨论】:

  • 我相信是的。见vimeo.com/110804387
  • 像魅力一样工作,即使在 LibreOffice 中也是如此。感谢您的出色工作!

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


【解决方案1】:

可以在 Word(或 LibreOffice / OpenOffice)中创建模板(即,像自定义样式表),包含您希望的任何页面格式和文档样式,并从 rmarkdown 文件中引用,即,

---
title: "My Document"
output:
  word_document:
    reference_docx: mystyles.docx
---
...rest of your rmarkdown here...

见:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多