gpt4 book ai didi

r-markdown - 在 RMarkdown 中制作 Beamer 讲义(消除停顿)

转载 作者:行者123 更新时间:2023-12-04 02:09:35 25 4
gpt4 key购买 nike

有没有办法将 Beamer 演示文稿转换为讲义演示文稿并消除停顿?在 LaTeX 中,这可以通过将标题更改为 \documentclass{beamer} 来实现。至 \documentclass[handout]{beamer} . RMarkdown 中的模拟是什么?

注意,我有一些幻灯片是增量式的,而另一些则不是,所以我使用了 >而不是 incremental: true在 YAML header 中插入我的暂停。

最佳答案

请引用:https://rmarkdown.rstudio.com/beamer_presentation_format.html想要查询更多的信息。

在这篇文章之后,您需要做的就是修改 RMarkdown 文档顶部的 YAML header 。具体来说,使用 classoption: "your_usual_option"传递您通常会在 \documentclass[your_usual_option]{beamer} 中传递的任何参数.以下是我针对您的具体情况所做的操作:

output:
beamer_presentation:
keep_tex: true
classoption: "handout"

为了确保我的建议有效,我添加了 keep_tex: true上面的 YAML header 中的选项,实际上,我的 .tex 文件现在显示 \documentclass[10pt,ignorenonframetext,handout]{beamer} .如果我删除 classoption:行,然后 .tex 文件显示 \documentclass[10pt,ignorenonframetext,]{beamer}
更新:

我刚刚找到了另一个解决方案,感谢 How can we pass pandoc_args to yaml header in rmarkdown?我猜可能更多的是你在找什么?
您也可以使用以下方法调整 YAML header :
beamer_presentation:
pandoc_args: [
# "-M", "classoption=a4paper"
"-M", "classoption=a4paper,handout"
]

您生成的 .tex 文件将显示“更新”的文档类。

关于r-markdown - 在 RMarkdown 中制作 Beamer 讲义(消除停顿),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40530972/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com