Skip to main content

slide

Touying slide function.

Parameters

config : dictionary    default: (:)

The configuration of the slide. You can use config-xxx to set the configuration of the slide. For more configurations, you can use utils.merge-dicts to merge them.

repeat : auto | int    default: auto

The number of subslides. Default is auto, which means touying will automatically calculate the number of subslides. The repeat argument is necessary when you use #slide(repeat: 3, self => [ .. ]) style code to create a slide. The callback-style uncover and only cannot be detected by touying automatically.

setting : function    default: body => body

The setting of the slide. You can use it to add some set/show rules for the slide.

composer : function | array | int | auto    default: auto

The composer arranges multiple content bodies side by side. - auto: use the theme default (components.side-by-side) - array, e.g. (1fr, 2fr, 1fr): column widths for side-by-side - int: equal columns shorthand - function: fully custom layout, e.g. grid.with(columns: 2) For example, #slide(composer: (1fr, 2fr, 1fr))[A][B][C] splits the slide into three columns. If you want to customize the composer, you can pass a function like #slide(composer: grid.with(columns: 2))[A][B].

..bodies : array

The contents of the slide. You can call the slide function with syntax like #slide[A][B][C] to create a slide.

Returns: content