RMarkdown 中的两列增量投影仪幻灯片

wra*_*ool 0 latex r beamer r-markdown

我试图在beamer演示幻灯片中获得两列布局,其中rmarkdown逐项显示 A 和 B 之间的差异。MWE如下:

---
  title: "Presentation Title"
author: "Name"
institute: "Institute"
date: "date"
output:
  beamer_presentation:
  incremental: true
theme: "Berlin"
colortheme: "dove"
fonttheme: "structurebold"
classoption: "aspectratio=169"

# Section 1

## A vs B

::: columns

:::: column
### A
- Item A1
- Item A2
::::

:::: column
### B
- Item B1
- Item B2
::::

:::
Run Code Online (Sandbox Code Playgroud)

然而,这意味着先出现 A1,然后出现 A2,然后出现 B1,然后出现 B2。我正在寻找一种解决方案,先给出 A1,然后给出 B1;A2,然后 B2。beamer 和 rmarkdown 可以做到这一点吗?

谢谢

sam*_*ter 6

您可以手动进行覆盖:

---
title: "Presentation Title"
author: "Name"
institute: "Institute"
date: "date"
output:
  beamer_presentation:
    keep_tex: true
    incremental: true
    includes:
      in_header: preamble.tex
theme: "Berlin"
colortheme: "dove"
fonttheme: "structurebold"
classoption: "aspectratio=169"
---

# Section 1

## A vs B
::: columns

:::: column
### A 
\begin{itemize}
\item<1-> Item A1
\item<3-> Item A2
\end{itemize}
::::

:::: column
### B 
\begin{itemize}
\item<2-> Item A1
\item<4-> Item A2
\end{itemize}
::::

:::
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述