Slide Options

The slide template can accept a SlideOptions object with some options. The options are related to auto-animation and backgrounds, see their respective tutorials for more details.

A SlideOptions is created using the proc slideOptions:

slide(slideOptions(colorBackground="#F1B434")):
  nbText: "Yellow background!"

Yellow background!

If you want to reuse the same SlideOptions for multiple slides, save it in a variable to reduce boilerplate:

let sOp = slideOptions(colorBackground="green")
slide(sOp):
  nbText: "Green 1"
slide(sOp):
  nbText: "Green 2"

Green 1

Green 2