plm*_*rcy 5 r beamer knitr r-markdown
我想从 RMarkdown 文件创建一个投影仪 pdf 演示文稿。我想在一些幻灯片中添加演讲者备注并为这些备注设置选项(打印或不打印演示文稿时)。
当演讲者在屏幕上进行演示时,这些演讲者笔记通常会显示在演讲者的计算机上,但不会显示在幻灯片上。
那可能吗?我怎样才能做到这一点?
header-includes:
- \setbeameroption{show notes}
Run Code Online (Sandbox Code Playgroud)
## This is a slide
this is (markdown) text in slide
\note{
this is a note (does not understand markdown and
and wont work in other outputs formats (such
as ioslides or Slidy
}
## Next Slide
Run Code Online (Sandbox Code Playgroud)
注释将如下所示:
knit该文档,将 YAML 更改header-includes为header-includes:
- \setbeameroption{hide notes}
Run Code Online (Sandbox Code Playgroud)
为了创建没有注释的pdf。
默认情况下,Rmarkdown 将覆盖之前创建的文档,因此您可能需要:
希望有更好的方法,我不知道。