alternatives-fn
alternatives-fn(start: 1, end: none, count: none, position: bottom + left, stretch: false, ..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 : none | int default: none
The ending subslide number. Default is none.
count : none | int default: none
The number of subslides. Default is none.
position : alignment default: bottom + left
The alignment of alternatives within the reserved space. Default is bottom + left.
stretch : bool default: false
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