首页 > 解决方案 > slide_level issue with Rmarkdown with slidy output

问题描述

In the following code, I should see 2 slides, the first slide should have title List of items and the second slide should start at Second heading. But I only see one slide after the first page. Where do I misunderstand?

---
title: Issue in setting slide level
date: December 3, 2019
output:
  slidy_presentation:
    slide_level: 2
---

# List of items.

 - One
 - Two
 - Three

## Second Heading

### Third Heading

I got it working using this :

---
title: "Issue in setting slide level"
date: "December 9, 2019"
output:
  slidy_presentation:
    pandoc_args:
      - --slide-level
      - 2
---

Can someone confirm if slide_level argument is not supported for slidy slideshows?

标签: rr-markdownknitrslidy

解决方案


This is because slide_level was not an argument of rmarkdown::slidy_presentation. I just added it to the development version of rmarkdown. You may try it with

remotes::install_github('rstudio/rmarkdown')

推荐阅读