r-markdown - RMarkdown 到 PPT:未加载 reference_doc()
问题描述
我正在尝试使用 PPT 模板来格式化 RStudio > RMarkdown > PPT 文件。这是我的测试文件(保存为 testing.Rmd):
---
title: "Aarduous Aardvarks"
author: "Aanonymous Aardvark"
date: "5/4/2019"
output: powerpoint_presentation
reference_doc: template.pptx
---
## My title
```{r myplot}
plot(mtcars)
```
当我第一次编织这个时,生成了一个 PPT 文件。我打开该文件,将幻灯片母版背景设为红色,字体设为蓝色(故意为测试而设计),将其保存为“template.pptx”,保存在与上述相同的文件夹中。
但是,当我重新编织文档时,背景仍然是白色,字体仍然是黑色。我需要什么来识别我的模板文件?
系统:
- 视窗 7 专业版
- 工作室 1.2.1335
- 降价 1.12
- 潘多克:2.6
- PPT 2010 v14.0.6129.5000
解决方案
YAML 中的缩进很重要。使用官方文档中描述的结构:
---
title: "Aarduous Aardvarks"
output:
powerpoint_presentation:
reference_doc: template.pptx
---
推荐阅读
- python-3.x - 难学Python——python-3环境下的ex17.py
- javafx - 如何在 JavaFX 中创建自定义 ProgressIndicator?
- ruby-on-rails - 是否可以使用 Minitest 从另一个测试中调用测试?
- c# - 当我的对象仍然为空时处理 Null 异常
- java - 使用 System.currentTimeMillis() 时出现问题;在爪哇
- apache - 如何阻止本地用户访问托管在 Apache 上的网站?
- javascript - 找不到模块:无法解析“@material-ui/core/Container”
- batch-file - quarkus 支持批量实现(JSR352)
- php - 未生成订单电子邮件 :: 需要 SMTP 配置 :: Magento 社区开源
- pyspark - 从列中查找子字符串并写入新列(多列搜索)