使用 Pandoc 和 Beamer 的章节标题幻灯片

Section title slide with Pandoc and Beamer

我正在为一些幻灯片使用 pandoc + beamer。如何创建标题幻灯片来介绍新的部分?

例如

____Slide 1_____
Section 1 ...
* bla
* bla
* bla
________________


_____Slide 2____


    Section 2      <--- How do I create this guy?

________________


____Slide 3_____
Section 2 ...
* bla
* bla
* bla
________________

如果您使用的是 pandoc,只需添加选项 --slide-level=2

详情见http://pandoc.org/MANUAL.html#structuring-the-slide-show

作为 MWE:pandoc -t beamer --slide-level 2 foo.md -o foo.pdf

幻灯片结构需要:

# This is a section slide

## This is the first slide in this section
 - list item 1
 - list item 2

## This is the next slide in this section
 - list item 1
 ![Image](./image1.png "alt text"){width:70%}

# This is the next section

## First slide of this section
 - list item 1
 - list item 2