Skip to main content

alternatives

#alternatives is able to show contents sequentially in subslides.

Example: #alternatives[Ann][Bob][Christopher] will show "Ann" in the first subslide, "Bob" in the second subslide, and "Christopher" in the third subslide.

Does not autocount subslides, see alternatives for the version that does.

Parameters

self : dictionary | none    default: none​

The slide context. Pass the self of a callback-style slide, or get the functions with utils.methods(self).

start : int    default: 1​

The starting subslide number. Default is 1.

repeat-last : bool    default: true​

Whether the last alternative should persist on all remaining subslides. Default is true.

position : alignment​

The alignment of alternatives within the reserved space. Default is bottom + left.

stretch : bool​

Whether to stretch all alternatives to the maximum width and height. Default is false.

Important: If you use a zero-length content like a context expression, you should set stretch: false.

Returns: content