How to create top level slide without text header?
Dobrokhotov1989 opened this issue · 2 comments
Hi! I want to add a top-level slide (i.e., class="title-slide slide level1"
) to my presentation. In the Readme it is stated that "you can also create a new slide without a header using a horizontal rule (----)". However, it creates only second-level slides (class="slide level2"
).
Simple reprex is below. I want slide number 3 to be a top-level slide with Rlogo and without any text.
---
title: "Reprex"
output:
revealjs::revealjs_presentation
---
# Slide 1
# Slide 2
<!-- I want this to be the top level slide without text title -->
----
<img class="r-stretch" src="https://www.r-project.org/logo/Rlogo.png">
# Slide 4
one thing with reveal is if you want vertical slides too or only horizontal slides. By default, with revealjs_presentation
, you'll get a 2D layout and a new slide created with horizontal rule ---
will create a vertical slide. If you want only horizontal slide, you can change the slide_level
parameter to 1 for only creating slides for level 1 header.
That being said, you can also use an empty header to create a new slide. For what you want to do, this would be
---
title: "Reprex"
output:
revealjs::revealjs_presentation
---
# Slide 1
# Slide 2
<!-- I want this to be the top level slide without text title -->
#
<img class="r-stretch" src="https://www.r-project.org/logo/Rlogo.png">
# Slide 4
Does that help ?
Thank you for your reply! Empty header works fine for me.