Hatch
On this page

Any note can be presented as slides. A note with slides: true in its properties is a deck: it gets a Present button in the top bar, and a published site shows it as slides instead of a page.

Writing a deck

---
slides: true
---
# Cabin build

Plans for the summer

---

## Budget

- Land: 60
- Timber: 24

Note: The land price is the one from March.
  • A --- line starts a new slide. Two in a row don't make an empty slide.
  • A line that starts with Note: (or Notes:) starts the speaker notes. Everything after it, to the end of the slide, is notes.
  • The layout comes from what a slide holds, so there are no layout names to learn:

    • Only a heading and a line or two: a title slide, in the middle.
    • Words and one picture: the picture takes the right half.
    • Only a quote, and maybe who said it: a large quote, in the middle.
    • Anything else reads from the top.
  • A slide that holds more than fits shrinks its text, down to about half size.
  • %% comments %% stay out, as they do on sites.
  • Everything a note can hold works on a slide: tables, code, callouts, math, diagrams, charts and pictures from the vault.

The file stays plain Markdown, so Obsidian and other tools open it as a normal note.

Examples

"Slide decks" in the template gallery (the + at the top of the sidebar, then From the template gallery) opens on "How slides work", a deck about the format itself. It also adds three more: a product pitch, a quarterly review and a talk. Together they use every layout, pictures, tables, charts, progress bars, callouts, code, a diagram and math.

Presenting in the app

"Present as slides" in the command palette or the note menu presents any note. A deck also has a Present button in the top bar.

KeyDoes
Right, Down, Page Down, SpaceNext slide
Left, Up, Page Up, Shift SpacePrevious slide
Home, EndFirst, last slide
NSpeaker notes
FFull screen
G or OEvery slide at once, to jump to one (pressing the slide number does it too)
EscClose the overview, or end

Pressing the slide goes forward (its left third goes back), and so does a swipe. The controls fade while the pointer rests. Links to the web open in the browser. Links to other notes are plain text, so presenting never leaves the slides.

The presenter shows the note as it was when it opened. Edits show the next time.

Embedded notes (![[Note]], ![[Note#Heading]]) and collections (![[Tasks.base]], a base block) show on slides as they do on a published page. A deck embedded in another note brings its slides, never its speaker notes.

The Slides panel

The Slides panel in the right panel shows every slide of the open note as a thumbnail, like the strip beside a deck in PowerPoint. The slide the caret is in is marked. Pressing one moves the note to it, and Present starts there. A slide that still holds too much with its text at the smallest size says "Too much for one slide", with a Split button that adds a --- line near its middle (before a heading where it can, never just after one, and between list items when the slide is one long list). The thumbnails follow edits a moment after typing stops. Turn the panel off in Settings, Plugins.

Export

A deck's note menu has "Export as PowerPoint" and "Export slides as PDF" (both are in the command palette for any note).

  • PowerPoint: a .pptx that PowerPoint, Keynote and Google Slides open. Text, lists, tables, code, callouts, progress bars and charts with their own numbers stay editable (charts are PowerPoint charts). Pictures go in as they are. Diagrams, math and charts drawn from a collection go in as pictures. Speaker notes go in the notes.
  • PDF: one slide on each 16:9 page, drawn exactly as presenting draws it, in the light theme. No speaker notes.

Published decks

On a site, a deck page shows one slide at a time with Previous, Next and Present (full screen). Arrow keys, Page Up and Down, Home and End, and swipes work too. The address keeps the slide (#slide-3), so a link opens on it. Without scripts, every slide shows, one under the other.

Speaker notes are never published: not on the page, in site search, in the page's description or in email updates.

Assistants

Hatch's MCP server has a slides tool: the format, the layouts, how much fits on a slide and how to turn a page into a deck. The server's instructions tell an assistant to call it before writing slides. Hatch's chat has the same guide as its slides tool. The text is packages/blocks/src/slidesGuide.ts.

Where it lives

PartFile
Splitting a note into slides, the slide styles, the site deck and its scriptpackages/publish/src/slides.ts
Deck pages on sitespackages/publish/src/site.ts
Drawing a deck for the presenter (pictures, charts, diagrams)presentNote in packages/app/src/export/index.ts
The presenter and its overviewpackages/app/src/components/Present.tsx, components/SlideThumbs.tsx, styles/35-present.css
The Slides panelpackages/app/src/slidesPanel.tsx
PowerPoint exportpackages/app/src/export/pptx.ts (pictures of diagrams and math: export/draw.ts)
PDF exportdeckPage in packages/app/src/export/pdf.ts
Testspackages/publish/src/slides.test.ts, packages/app/src/export/pptx.test.ts, scripts/e2e-slides.py

The slide itself (.hs-slide, SLIDES_CSS) is one set of styles for the app and sites. It sizes everything against the slide's width, so it looks the same in a window, full screen and on a phone.