zpres: presentations from textDRAFT
For ModRef 2026, I needed to give three presentations. This was apparently not enough of a deadline on its own, so I also decided to write a presentation system.
zpres 0.1.0 is the result: an open-source presentation builder inspired by reveal.js.
I write slides and speaker notes in a Markdown-like .zp.md file, preview the deck in a browser, and build both interactive HTML and a PDF from the same source.
The three ModRef talks cover very different subjects: a wedding seating problem, experiments on large Sudoku grids, and propagation algorithms for selecting well-spaced points. Giving three talks at the same workshop made it even nicer to give each one its own visual style while keeping the authoring format and presentation tooling identical.
Designing for the content
The first talk, No More Awkward Silences with Table Talk Tuning, is about a real wedding seating plan that balances table capacities and grouping requests with giving every guest something to talk about. For a wedding problem, the Wedding theme borrows from invitations and seating cards, using serif typography, botanical ornaments, and a reception-room backdrop. On the comparison slide below, the two core questions (practical requirements versus shared conversation topics) sit as two cards on a sheet of stationery.

Table Talk Tuning: a comparison laid out as a pair of cards.
Scaling Sudoku as a Constraint Problem is an experimental study across 434,201 puzzles from 6×6 up to 36×36, tracking when propagation alone stops being enough. Paper Chalk styles it like a lab notebook with ruled lines and margin marks. Putting each grid next to its size, hardness bucket, and generation time in the same layout across every size lets the audience watch the board grow while the measurements stay put.

Scaling Sudoku: a puzzle and its experimental notes on a notebook page.
After two light, skeuomorphic themes, Propagation Algorithms for the Minimum-Distance Constraint over Selected Points went in the opposite direction. Dark Splash uses a dark background, bright accents, and geometric framing, which suits diagrams like the propagation step below, where selecting A crosses out B and D because they fall inside the orange distance threshold.

Minimum-distance propagation: the diagram shows which choices an assignment removes.
A deck can use one of the built-in themes, tweak its parameters, or point at a local theme package.
In the .zp.md source, I mostly describe the content and what kind of slide it is (a comparison, a figure, a split view) and leave the layout composition to the theme.
Keeping the argument and its details together
Talks routinely invite questions that deserve more detail than fits in the main slot. In zpres, I can attach detail slides directly beneath a main slide to hold a deeper walkthrough, an extended example, or the background behind a decision without cluttering the main sequence.
For example, a talk about migrating booking systems might state the customer impact on the main slide and keep the transfer steps right behind it for Q&A:
# Existing bookings move with us
Customers keep their bookings and confirmation numbers.No action is needed from them.
--
## Detail: how bookings are transferred
1. Copy existing bookings into the new system.2. Check dates, customer details, and confirmation numbers.3. Resolve any mismatches before opening the new system.The -- divider attaches a detail slide to the main slide above it.
During an interactive presentation I can dip into it if someone asks and step right back into the main flow; in the PDF export, each detail slide lands straight after its parent slide so the supporting material stays next to the claim it backs up.
The same text format holds maths notation, code, figures, and speaker notes. For the wedding comparison slide earlier, the source only defines a primary side and a supporting side, each with a label and a list, and the Wedding theme renders the two stationery cards. Editing the wording or moving the slide around never means wrestling with hand-written HTML layout.
Editing and reviewing
The browser preview watches the source file, local assets, and theme files. Errors point back to the source line, and if I break the syntax mid-edit, the last valid deck stays on screen until I fix it.
Keeping a presentation as plain text in Git also makes it practical to edit alongside coding agents. Pushing a long explanation onto a detail slide or tightening a section is just a diff I can read and accept. Of course, a diff only shows what changed in the source; it cannot tell me whether a wording change unbalanced a two-column comparison or left a diagram cramped. That is why zpres can render individual PNG/JPEG slides as well as contact sheets: single pages let me inspect a slide at full presentation size, while a contact sheet makes repeated layouts and sudden changes in visual density stand out across the whole talk.
Presenting and sharing
When presenting, the audience view goes onto the projector while the speaker view runs on another port of the same local zpres server on my laptop. The two stay in sync in both directions, and the speaker view shows the current and next slides alongside speaker notes, a clock, and an elapsed timer.

The speaker view, with notes and timing information alongside the slides.
To publish a talk, zpres builds a self-contained HTML deck that works offline.
Speaker notes are included by default, and passing --exclude-speaker-notes strips them out for a public copy.
I also want a plain PDF backup in case a venue projector setup misbehaves. Exporting the PDF needs Chrome or Chromium on my machine, but the output opens in any PDF viewer, giving me a fallback without maintaining a second deck.
Trying zpres
Version 0.1.0 is on crates.io:
cargo install zpres --lockedCreate a deck in the current directory and preview it with the Science theme:
zpres init talk.zp.md --title "My talk" --author "Your name"zpres serve talk.zp.md --theme scienceSetting theme: science in the file’s front matter keeps that choice for later builds.
To publish the deck as HTML and PDF:
zpres build talk.zp.md --out dist/talk --exclude-speaker-noteszpres export talk.zp.md --pdf dist/talk.pdfThe getting started guide covers the source syntax and controls, and the three ModRef talk pages linked above include the finished interactive decks, PDFs, and .zp.md sources.