A simple #lang slideshow
program that uses the ppict
library.
(The ppict
library is a handy way to make normal picts.)
- Set your PATH environment variable
so you can use
raco
and other Racket command line functions. - either look for
from-template
in the DrRacket menu File|Package Manager, or run theraco
command:
raco pkg install from-template
- run this
raco
command:
raco new ppict-slideshow-template <destination-dir>
# if you omit `<destination-dir>`, the default is `./ppict-slideshow-template`
- install the newly-cloned package:
# optional: change the package name in 'info.rkt'
cd <destination-dir>
raco pkg install
To make a new slide, start by editing the code at the bottom of the file and then run this command to generate a picture:
make pict
To preview the slideshow, run the following command. (If you are using the same
terminal window to edit the show, add an &
to the end.)
make preview
To run the show:
make show
To create a PDF copy, run this command and hit "Enter" when a dialog box appears on your screen:
make pdf
The .ss
file extension is a pre-Racket way to make a PLT Scheme file.
I think it stands for "Scheme script."
Because a Slideshow program is similar to a Racket program but not really the
same, I like using .ss
for "slide show" code.
The PLT Scheme website may say more about the .ss
extension:
https://www.plt-scheme.org