alternatives-fn
alternatives-fn(self: none, start: 1, end: none, count: none, ..kwargs, fn)(source)You can have very fine-grained control over the content depending on the current subslide by using #alternatives-fn. It accepts a function (hence the name) that maps the current subslide index to some content.
Example: #alternatives-fn(start: 2, count: 7, subslide => { numbering("(i)", subslide) })
Parameters
start : int default: 1
The starting subslide number. Default is 1.
end : int | none default: none
The ending subslide number. Default is none.
count : int | none default: none
The number of subslides. Default is none.
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