Staged Slides
staged
stage
stage-name
slide/  staged
at
before
before/  at
at/  after
after
before/  after
6.3.90.900

Staged Slides

Carl Eastlund <cce@racket-lang.org>
and Vincent St-Amour <stamourv@racket-lang.org>

 (require slideshow/staged-slide) package: staged-slide

This library provides helpers for creating stages slides that provide more flexibility than Slideshow’s build-in slide.

syntax

(staged [name ...] body ...)

Executes the body terms once for each stage name. The terms may include expressions and mutually recursive definitions. Within the body, each name is bound to a number from 1 to the number of stages in order. Furthermore, during execution stage is bound to the number of the current stage and stage-name is bound to a symbol representing the name of the current stage. By comparing stage to the numeric value of each name, or stage-name to quoted symbols of the form 'name, the user may compute based on the progression of the stages.

syntax

stage

syntax

stage-name

These keywords are bound during the execution of staged and should not be used otherwise.

syntax

(slide/staged [name ...] arg ...)

Creates a staged slide. Equivalent to (staged [name ...] (slide arg ...)).

Within a staged slide, the boolean arguments to hide, show, and others can be used to determine in which stages to perform a transformation. The macros pict-if, pict-cond, and pict-case, may also be used to create images which change naturally between stages.

syntax

(at name ...)

Returns #t if the current stage is one of name.

syntax

(before name)

Returns #t if the current stage is before name.

syntax

(before/at name)

Returns #t if the current stage is before name or is name.

syntax

(at/after name)

Returns #t if the current stage is after name or is name.

syntax

(after name)

Returns #t if the current stage is after name.

syntax

(before/after name)

Returns #t if the current stage is before or after name.