编织为rpptx_document无法识别我的ppt模板(officedown)

发布于 2025-02-08 18:57:01 字数 2033 浏览 2 评论 0原文

我正在尝试使用模板使用OfficeDown创建PowerPoint文档:

---
date: "`r Sys.Date()`"
author: "Your Name"
title: "Officedown test"
output: 
  officedown::rpptx_document:
  reference_doc: template.pptx
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE, fig.cap = TRUE)
library(officedown)
library(officer)
library(dplyr)
```

## Table

```{r, echo = FALSE}
ppt_template <- read_pptx("template.pptx")
layout_summary(ppt_template) %>%  knitr::kable()
```

因此,我得到了不使用模板的PowerPoint演示文稿。我似乎没有收到任何警告/错误消息:

processing file: testing_officedown.Rmd
  |..............                                                        |  20%
   inline R code fragments

  |............................                                          |  40%
label: setup (with options) 
List of 1
 $ include: logi FALSE

  |..........................................                            |  60%
  ordinary text without R code

  |........................................................              |  80%
label: unnamed-chunk-1 (with options) 
List of 1
 $ echo: logi FALSE

  |......................................................................| 100%
  ordinary text without R code


"C:/.../RStudio/bin/quarto/bin/pandoc" +RTS -K512m -RTS testing_officedown.knit.md --to pptx --from markdown+autolink_bare_uris+tex_math_single_backslash --output testing_officedown.pptx --reference-doc "C:\...\AppData\Local\Temp\RtmpYZ89AI\filed7423372e06.pptx" 
output file: testing_officedown.knit.md


Output created: testing_officedown.pptx

请注意:

  • 使用带有rmarkDown PowerPoint_presentation的模板,我没有问题。
  • 我已经尝试过没有成功的尝试:使用PowerPoint Template with officedown href =“ https://github.com/davidgohel/offceedown/issues/65” rel =“ nofollow noreferrer”> https://github.com/davidgohel/offcehel/offceedown/offceedown/issues/issues/65

我真的会喜欢任何人帮助。

I'm trying to create a powerpoint document with officedown using a template:

---
date: "`r Sys.Date()`"
author: "Your Name"
title: "Officedown test"
output: 
  officedown::rpptx_document:
  reference_doc: template.pptx
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE, fig.cap = TRUE)
library(officedown)
library(officer)
library(dplyr)
```

## Table

```{r, echo = FALSE}
ppt_template <- read_pptx("template.pptx")
layout_summary(ppt_template) %>%  knitr::kable()
```

As a result, I get a powerpoint presentation that doesn't use the template provided. I don't seem to get any warning/error message:

processing file: testing_officedown.Rmd
  |..............                                                        |  20%
   inline R code fragments

  |............................                                          |  40%
label: setup (with options) 
List of 1
 $ include: logi FALSE

  |..........................................                            |  60%
  ordinary text without R code

  |........................................................              |  80%
label: unnamed-chunk-1 (with options) 
List of 1
 $ echo: logi FALSE

  |......................................................................| 100%
  ordinary text without R code


"C:/.../RStudio/bin/quarto/bin/pandoc" +RTS -K512m -RTS testing_officedown.knit.md --to pptx --from markdown+autolink_bare_uris+tex_math_single_backslash --output testing_officedown.pptx --reference-doc "C:\...\AppData\Local\Temp\RtmpYZ89AI\filed7423372e06.pptx" 
output file: testing_officedown.knit.md


Output created: testing_officedown.pptx

Please note that:

I would really appreciate any help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

耀眼的星火 2025-02-15 18:57:01

正如David所说,Reference_doc是rpptx_document的论点:

---
date: "`r Sys.Date()`"
author: "Your Name"
title: "Officedown test"
output: 
  officedown::rpptx_document: 
    reference_doc: template.pptx
---

As David said, reference_doc is an argument of rpptx_document:

---
date: "`r Sys.Date()`"
author: "Your Name"
title: "Officedown test"
output: 
  officedown::rpptx_document: 
    reference_doc: template.pptx
---
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文