jgm / pandoc

Universal markup converter
https://pandoc.org
Other
34.88k stars 3.39k forks source link

Using \section for beamer output #1952

Closed tindzk closed 9 years ago

tindzk commented 9 years ago

Certain beamer templates like mtheme advocate the use of \section{...} to group slides. It should be possible to control whether # indicates a frame or a section. If I understand correctly, # used to denote a section, but this was changed in recent versions (see also https://github.com/jgm/pandoc/issues/994). Using the raw LaTeX command in the markdown file seems to wrap a frame around it, which in turn leads to a compilation error.

jgm commented 9 years ago

See the documentation on slide shows in the README.

The first level of header to contain content directly under it (and not merely group other headers) is the slide level. Headers above this will be sections.

So, for example:

# Section

## Slide

foo

## Slide two

bar

# Section two

## Slide three

baz
tindzk commented 9 years ago

Thanks. I just had to set --slide-level=2.