Quarto Deck
Build browser-native slide decks with Quarto Reveal.js. Same rhetoric framework
as
beamer-deck, HTML output that can be shared as a URL, run live code, and
still print to PDF.
Purpose
Create one presentation as a .qmd file: assertion titles, a three-act arc, a
theme with reusable layout classes, speaker notes, figures generated from code,
and a deck that has been linted, reviewed and looked at slide by slide.
Use this for: teaching (workshops and classes), informal research talks,
web-shared decks, decks with live R/Python cells.
Use beamer-deck for: conference talks, seminars and anything that must be
PDF-native. Slides default to Beamer unless the user asks for Quarto or HTML.
Use quarto-course for: a course website with many lectures and exercises.
Prerequisites
- Quarto ≥ 1.4 (
quarto --version; 1.10 on the Mini). - R with knitr for R chunks;
uvfor Python. - For PDF export: Node.js and Google Chrome (set
CHROMEto the browser binary to override the macOS
default). puppeteer-core installs itself once into
${XDG_CACHE_HOME:-~/.cache}/quarto-deck-print; it downloads no browser.
- For page images:
pdftoppm(poppler).
Bundled resources, referenced as <this-skill>/... (the directory holding this file):
| Path | What |
|---|---|
| templates/deck.qmd, templates/theme.scss | starter deck with every layout pattern, and its theme |
| scripts/init-deck.sh | scaffold a deck (never overwrites; respects an existing Quarto project) |
| scripts/lint_deck.py | mechanical lint, exit 1 on errors |
| scripts/export-pdf.sh (+ print-pdf.mjs, package.json) | render, print to PDF, write page images |
| references/quarto-revealjs.md | syntax: layout, fragments, notes, figures, live code, handouts |
| references/chart-selection.md | which chart for which claim |
| references/quality-rubric.md | deductions for the quality score |
Critical Rules
- Python: ALWAYS use
uv run pythonoruv pip install. Never barepython,python3,piporpip3. Include this in any sub-agent prompt that may run Python. - One
.qmdfile = one deck.#for section slides (act boundaries),##for content slides. - Titles are assertions, not labels. "Distance raises abortion costs", not "Results". The title states the slide's claim.
- One idea per slide. If a slide makes two points, split it.
- Every number, quote and claim of fact is sourced on the slide (
.sourceline or@citekey). Never invent a statistic, and never leave a template placeholder in a delivered deck. - Speaker notes in
::: notes. The slide anchors; the notes carry what is said. - Styling lives in the theme
.scss. Use classes ({.accent},{.step-card}); no inlinestyle=. - Figures first, from code, with alt text. Scripts in
scripts/, output infigures/,fig-alton every image. Choose the chart withreferences/chart-selection.md. - Build up with
.fade-in-then-semi-outor.incremental, never.semi-fade-out(it starts fully visible). - Inside an existing Quarto project, follow its
_quarto.yml. Do not add a second theme or override its formats (e.g. the PB130/PB230 workshop decks:live-revealjswith webR, plus ahandoutprofile). - Nothing is done until it has been rendered and looked at. Lint, then export page images and inspect them (Phase 4).
Academic exceptions: tables, equations and code may exceed the lint's word
limit. Split the slide rather than shrinking text below readable size.
Rhetoric Principles
Same framework as beamer-deck. Full reference (Three Laws, MB/MC, Aristotelian
Triad, Narrative Arc, Pyramid Principle, Devil's Advocate, audience-specific