简体   繁体   English

带有滑动输出的 Rmarkdown 的 slide_level 问题

[英]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.在下面的代码中,我应该看到 2 张幻灯片,第一张幻灯片应该有标题项目列表,第二张幻灯片应该从第二个标题开始。 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?有人可以确认滑动幻灯片不支持 slide_level 参数吗?

This is because slide_level was not an argument of rmarkdown::slidy_presentation .这是因为slide_level不是rmarkdown::slidy_presentation的参数。 I just added it to the development version of rmarkdown . 我只是将它添加rmarkdown的开发版本中。 You may try it with你可以试试

remotes::install_github('rstudio/rmarkdown')

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM