Cookbook
Six pedagogical patterns, each a full runnable lesson. These are the shapes worth reaching for when authoring a slide — predict-then-reveal, build-the-thing, and so on — not just syntax reference. Edit any one right here.
Predict, then reveal
The learner sketches a guess before the real curve is shown. `reveal { ... }` hides the answer until the exercise is checked — pairs naturally with `sketch`.
Build the thing
The learner assembles an expression from a token bank instead of picking or typing an answer — good for factoring, simplification, and any step with a well-defined token sequence.
Fill in the definition
A `build` with a `template` turns a sentence into blanks the learner fills from a bank. Same kind as the token-bank builder above — the only difference is that the literal text around the slots is prose instead of math. Much harder to guess than the equivalent multiple choice, since the distractors sit in the bank rather than next to the answer.
Step through
A `timeline` walks the learner through a scene one beat at a time — narrate, reveal, animate — instead of dumping the whole picture at once.
Here's f(x) = x².
Explore, then formalize
Free play with sliders first, so the learner notices the pattern themselves — then a quiz/numeric slide names what they just discovered.
Draw your guess
Like predict-then-reveal, but the answer is a handful of tapped points (`sketch points`) rather than a whole curve — good for intercepts, roots, or landmark values.
Parameter hunt
A dashed target curve and a `goal` gate Continue until the learner's sliders match it — turns "adjust these three numbers" into a game with a clear win condition.
Catch the misconception
Name the specific wrong answer you expect, then `onwrong:` sends anyone who picks it to a hidden scaffold slide that re-teaches the missing idea before returning them to the question. Write one detour per misconception, not one per question. The point is to answer *why* they went wrong, which a generic explanation cannot.