► |  | Slideshow: Figure and Presentation Tools

1 | Creating Slide Presentations
2 | Making Slides
3 | Typesetting Racket Code in Slideshow
4 | Animations
5 | Legacy Libraries
| Bibliography
| Index

▼ | 2 | Making Slides

2.1 | Primary Slide Functions
2.2 | Slide Registration
2.3 | Viewer Control
2.4 | Constants and Layout Variables
2.5 | Configuration
2.6 | Pict-Staging Helper
2.7 | Text Formatting Helpers
2.8 | Slides to Picts

On this page:

start-at-recent-slide
enable-click-advance!
set-use-background-frame!
set-page-numbers-visible!
current-page-number-font
current-page-number-color
current-page-number-adjust
set-spotlight-style!
set-allow-new-slides-after-close!

top ← prev up next →

#### 2.3`` Viewer Control

> procedure (start-at-recent-slide) → void?

Sets the starting slide for the talk to the most recently created slide. If this function is used multiple times, the last use overrides the earlier uses.

> procedure (enable-click-advance! on?) → void?
> on? : any/c

Enables or disables slide advance as a result of a mouse click.

> procedure (set-use-background-frame! on?) → void?
> on? : any/c

Enables or disables the creation of a background frame, which is typically useful only when make-slide-inset is used are active. The last enable/disable before the first slide registration takes effect once and for all.

> procedure (set-page-numbers-visible! on?) → void?
> on? : any/c

Determines whether slide numbers are initially visible in the viewer.

> parameter (current-page-number-font) → (is-a?/c font%)
> (current-page-number-font font) → void?
> font : (is-a?/c font%)

Parameter that determines the font used to draw the page number (if visible).

> parameter (current-page-number-color) → (or/c string? (is-a?/c color%))
> (current-page-number-color color) → void?
> color : (or/c string? (is-a?/c color%))

Parameter that determines the color used to draw the page number (if visible).

> parameter (current-page-number-adjust) → (-> number? string? string?)
> (current-page-number-adjust proc) → void?
> proc : (-> number? string? string?)

Parameter that controls the precise text that appears to indicate the page numbers (if visible). The input to the function is the default string and the slide number, and the result is what is drawn in the bottom right corner. The default parameter value just returns its first argument.

> > procedure
> > (set-spotlight-style! | [ | #:size size |  |  |  |
> > |  | #:color color]) |  | → |  | void?
> size : (or/c #f (>=/c 0)) = #f
> color : (or/c #f string? (is-a?/c color%)) = #f

Adjusts the size and color of the “spotlight,” which can be enabled in Slideshow as an alternative to the mouse. Note that the color normally should have alpha value less than 1 (to make it partially transparent). If size or color is #f, the corresponding setting is unchanged.

> procedure (set-allow-new-slides-after-close! on?) → void?
> on? : any/c

Sets whether new slides are allowed after the Slideshow window is closed by the user. By default, an attempt to register a new slide via slide after the window is closed triggers an error. Calling this function with #t enables new slides to start a new slideshow.

Added in version 1.3 of package slideshow-lib.

top ← prev up next →