Skip to main content

touying-progress

touying-progress(callback)(source)

Get the progress of the current slide.

utils.last-slide-number gives the total slide count and can be used directly in headers or footers.

Example:

#show: simple-theme.with(aspect-ratio: "16-9")
= Slide
#touying-progress(ratio => {
"Progress: " + str(int(ratio * 100)) + "%"
})
Parameters

callback : function​

A function ratio => { .. } receiving a float between 0.0 and 1.0.

Returns: content