typst-test-slide
Installation
SKILL.md
Typst Test Slide - Isolate and Render a Single Slide
Renders a single Typst slide in isolation for debugging or visual verification. This is a recipe, not a workflow.
Why This Exists
Typst cannot access files outside its project root. Creating test files in /tmp/ causes "access denied" on every #import and #image() call. This skill provides the correct pattern.
Common Errors This Prevents
| Error | Cause | Fix |
|---|---|---|
access denied on #import "../templates/theme.typ" |
Test file is in /tmp/ (outside project root) |
Put test file in output/ inside the project |
access denied on #image(...) |
Image path resolves outside project root | Use ../assets/ from output/ directory |
file not found on #import "../../templates/theme.typ" |
Wrong relative depth (used sub-slide depth instead of output/ depth) |
output/ is one level deep: use ../templates/, not ../../templates/ |
| Slides don't render (just text) | Missing #show: university-theme.with(...) preamble |
Include the full preamble (see template below) |