The reason to write analysis in Quarto rather than a notebook plus a separate deck is that the deck stops drifting from the analysis. This page and the PDF, reveal.js and PowerPoint versions linked beside the title all came from one index.qmd. Nothing was copied.
Getting that to work is mostly about three constraints, which are easier to accept up front than to retrofit.
Rule 1: Headings are slide boundaries
In the article formats a ## heading starts a section. In reveal.js and PowerPoint the same heading starts a slide, and its content has to fit on one.
That is a real writing constraint, not a formatting detail. It means a few tight paragraphs and one figure per heading. The upside is that prose written this way is better prose — if a section does not fit on a slide, it was probably doing two things at once.
Rule 3: Content that only belongs in one place gets fenced
Some material is web-only — a long appendix, a data dictionary, an interactive widget. Some is slide-only, like a punchline with no supporting text. Quarto’s conditional divs handle both.
This paragraph appears only in the HTML version. It is the natural home for the caveats and the methodology notes that would ruin a slide.
The mechanism is ::: {.content-visible when-format="html"}. There is also content-hidden, and when-format accepts pdf, revealjs and pptx.
The takeaway
Write the analysis once, in the format that keeps the code next to the claim. Decide later who needs it as a document.