如何在Rmarkdown投影仪演示中使用多个笔记页面

问题描述 投票:1回答:1

在Markdown投影仪演示文稿输出中,我的多个注释页面被合并为一个注释页面。当我查看.tex文件时(从我的keep_text=TRUE选项开始),是因为notes命令放在\begin{frame} ... \end{frame}之间,而不是在\end{frame}外部。以下是我在Rmarkdown投影仪演示文稿文档中可复制的代码。任何帮助将不胜感激。

---
output:
   beamer_presentation
   keep_tex: yes
--- 

## slide title 

- item 1

- item 2

\note{
long paragraph 1
}

\note{ 
long paragraph 2 
}

我得到这个输出

“片段1”

但是我想要的是:

“片段2”

r-markdown presentation beamer
1个回答
0
投票

您可以尝试使用以下代码吗?

---
output:
   beamer_presentation
   keep_tex: yes
--- 

## slide title 

- item 1

- item 2

``` {=latex}
\note<1>{
long paragraph 1
}

\note<2>{ 
long paragraph 2 
}
```
© www.soinside.com 2019 - 2024. All rights reserved.