【问题标题】:Making Beamer Handout in RMarkdown (removing pauses)在 RMarkdown 中制作 Beamer 讲义(消除停顿)
【发布时间】:2017-03-24 16:19:25
【问题描述】:

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

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

【问题讨论】:

    标签: r-markdown beamer


    【解决方案1】:

    请参考:https://rmarkdown.rstudio.com/beamer_presentation_format.html 了解更多信息。

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

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

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

    更新:

    我刚刚找到了另一个解决方案,感谢How can we pass pandoc_args to yaml header in rmarkdown? 我猜你要找的可能更多? 您也可以调整您的 YAML 标头:

    beamer_presentation:
      pandoc_args: [
    #      "-M", "classoption=a4paper"
          "-M", "classoption=a4paper,handout"
        ]
    

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

    【讨论】:

      猜你喜欢
      • 2020-06-19
      • 1970-01-01
      • 2017-04-22
      • 1970-01-01
      • 1970-01-01
      • 2017-08-01
      • 2017-07-30
      • 1970-01-01
      • 2021-10-08
      相关资源
      最近更新 更多