docs for items-slide
This commit is contained in:
parent
fbf153a435
commit
84b334168b
|
@ -158,6 +158,9 @@ which change naturally between stages.
|
||||||
}
|
}
|
||||||
|
|
||||||
@section{Revealing Slides}
|
@section{Revealing Slides}
|
||||||
|
|
||||||
|
@addition{Jon Rafkind}
|
||||||
|
|
||||||
@defform[(reveal number expr ...)]{
|
@defform[(reveal number expr ...)]{
|
||||||
|
|
||||||
Expands to either @racket[(show expr ...)] or @racket[(hide expr ...)] if
|
Expands to either @racket[(show expr ...)] or @racket[(hide expr ...)] if
|
||||||
|
@ -182,6 +185,28 @@ arbitrary places.
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@defform[(items-slide (name ...) expr ...)]{
|
||||||
|
|
||||||
|
Creates N slides where N is the maximum number given to a @racket[reveal]
|
||||||
|
similar to @racket[revealing-slide]. Each slide will show the names on the left
|
||||||
|
hand side using right justification and only one reveal will be displayed on the
|
||||||
|
right. The order of the names will be matched with the current reveal number so
|
||||||
|
the first item will be displayed while the first reveal is displayed. Reveals
|
||||||
|
that are not active will have their corresponding items displayed but in a light
|
||||||
|
font so as to indicate inactivity.
|
||||||
|
|
||||||
|
@racketblock[
|
||||||
|
(items-slide ("item1" "item2" "item3")
|
||||||
|
(reveal 0
|
||||||
|
@t{I will show up for item1})
|
||||||
|
(reveal 1
|
||||||
|
@t{I will show up for item2})
|
||||||
|
(reveal 2
|
||||||
|
@t{I will show up for item3}))
|
||||||
|
]
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@section{Miscellaneous Slide Utilities}
|
@section{Miscellaneous Slide Utilities}
|
||||||
|
|
||||||
@addition{Scott Owens}
|
@addition{Scott Owens}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user