简体   繁体   English

R Markdown 将 Powerpoint 演示文稿呈现为 PDF 的工作流程

[英]R Markdown Workflow to Render a Powerpoint Presentation as PDF

I have begun using Rmd to render Powerpoint presentations consistently, using the YAML tags and more importantly, a reference Powerpoint to ensure standardized / consistent formatting: output: powerpoint_presentation: slide: reference_doc: "reference.pptx" .我已经开始使用 Rmd 一致地呈现 Powerpoint 演示文稿,使用 YAML 标签,更重要的是,使用参考 Powerpoint 以确保标准化/一致的格式: output: powerpoint_presentation: slide: reference_doc: "reference.pptx" When I want to share a PPT document as a reference for my peers / students however, I want to be able to have my slides available as a.pdf file.但是,当我想分享一份 PPT 文档作为我的同龄人/学生的参考时,我希望能够将我的幻灯片以 .pdf 文件的形式提供。

I have had success using shell commands in R using LibreOffice's soffice command, however I am not always at a workstation with that available.我已经使用 LibreOffice 的 soffice 命令在 R 中成功使用 shell 命令,但是我并不总是在有可用的工作站上。 Is there a portable solution / executable I can call, or additional Rmd tags for rendering a document with a.pptx reference document, but rendered as a.pdf file?是否有我可以调用的便携式解决方案/可执行文件,或用于呈现带有 .pptx 参考文档但呈现为 .pdf 文件的文档的附加 Rmd 标签?

I believe you have to specifiy output: beamer_presentation in the header.我相信您必须在 header 中指定output: beamer_presentation beamer_presentation。 Take a look at this: https://rmarkdown.rstudio.com/formats.html看看这个: https://rmarkdown.rstudio.com/formats.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM