layout property

remark properties layout

The layout property can be used to create layout slides

Emil Hvitfeldt
05-08-2021

The layout property comes from the remark library. It setting layout: true makes the current slide a layout slide, which is omitted from the slideshow and serves as the default template used for all subsequent slides.

Setting layout: false reverts to using no default template.

Result

Rmd

---
output:
  xaringan::moon_reader:
    seal: false
    lib_dir: libs
    nature:
      highlightStyle: github
      highlightLines: true
      countIncrementalSlides: false
---

layout: true

# Header Section

---

## Sub section 1

The header with `layout: true` will be keep, 
but whats on this slide is addded on

---

## Sub section 2

And this continues forever. And must be turned 
off with `layout: false`

---

layout: false

Now we repeat

---

1

---

2

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

Citation

For attribution, please cite this work as

Hvitfeldt (2021, May 8). Xaringan Gallery: layout property. Retrieved from https://xaringan.gallery/examples/layout-example/

BibTeX citation

@misc{hvitfeldt2021layout,
  author = {Hvitfeldt, Emil},
  title = {Xaringan Gallery: layout property},
  url = {https://xaringan.gallery/examples/layout-example/},
  year = {2021}
}