R Markdown PowerPoint -r可以找到名为“标题幻灯片”的布局。

发布于 2025-02-04 22:13:22 字数 593 浏览 3 评论 0原文

我正在rstudio中的r markdown(.rmd)创建PowerPoint演示文稿。

---
title: "My Presentation"
author: "My name"
date: "6 4 2022"
output:
  powerpoint_presentation:
    reference_doc: template.pptx
---

找到模板,但是渲染时发生错误:

[WARNING] Powerpoint template warning: Couldn't find layout named "Title Slide" in provided reference doc. Falling back to the default included with pandoc.
[WARNING] Powerpoint template warning: Couldn't find layout named "Section Header" in provided reference doc. Falling back to the default included with pandoc.

I am creating a PowerPoint Presentation from R markdown (.rmd) in RStudio.

---
title: "My Presentation"
author: "My name"
date: "6 4 2022"
output:
  powerpoint_presentation:
    reference_doc: template.pptx
---

The template is found, but an error occurs when rendering:

[WARNING] Powerpoint template warning: Couldn't find layout named "Title Slide" in provided reference doc. Falling back to the default included with pandoc.
[WARNING] Powerpoint template warning: Couldn't find layout named "Section Header" in provided reference doc. Falling back to the default included with pandoc.

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

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

发布评论

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

评论(1

请帮我爱他 2025-02-11 22:13:22

问题 - 显然 - 在template.pptx中没有那些名称的主幻灯片。但是,当我在PowerPoint中编辑文件并打开“编辑主幻灯片”视图时,有一个标题幻灯片,以及带有标题和内容的幻灯片等。

但是,我的办公室365不是英语,而是用德语。而且,当然,Office还将使用翻译用于主幻灯片的内部名称。

看起来像一个解决方案正在驶向主幻灯片,右键单击标题幻灯片 - >重命名布局 - >并将titelfolie更改为标题幻灯片。重复所有其他布局。

但是,问题将继续下去...

Could not find a 0th placeholder of type body
Fehler: pandoc document conversion failed with error 63

因此,实际解决方案是进入办公室设置,将显示语言更改为英语创建并编辑一个新的PPTX文件。

The problem - obviously - is that there are no master slides with those names in the template.pptx. Yet, when I edit the file and open the "edit master slides" view in PowerPoint, there is a title slide, and a slide with title and content and so on.

However, my Office 365 is not in English but in German. And, of course, Office will also use translations for the internal names of master slides.

What looks like a solution is going the master slides, right-click on the title slide -> rename layout -> and change Titelfolie to Title Slide. Repeat for all other layouts.

Yet, the problems will continue...

Could not find a 0th placeholder of type body
Fehler: pandoc document conversion failed with error 63

So, the actual solution is to go into the Office settings, change the display language to English and the create and edit a new PPTX file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文