Alternatives
The alternatives function allows you to display different content per step.
Note
The implementation of
alternatives has been borrowed from the Polylux package, with some adaptations to fit the Slydekit framework.#let alternatives(
start: 1,
repeat-last: false,
..options
)Argument
<start>: 1int
The starting step for the reveal. The first element will be revealed on this step.
Argument
<repeat-last>: falsebool
If set to true, the last element will be repeated for all subsequent steps. If set to false, the last element will only be shown on its designated step.
Argument
<..options>list
The list of options to be displayed.
== `#alternatives` example
#alternatives[Ann][Bob][Christopher]
likes
#alternatives[chocolate][strawberry][vanilla]
ice cream.