Presentation Builder は何をしますか?
A deck is an argument delivered at speaking speed. Each slide carries one claim; the speaker carries the evidence. If a slide has to be read, it is a document that should have been a PDF.
The generator applies a small visual system so every deck is consistent, and renders
the same Markdown to either an editable .pptx or a .pdf of the slides.
Quickstart
python3 -m venv .venv
.venv/bin/pip install -r scripts/requirements.txt
# PowerPoint (editable, has speaker notes)
.venv/bin/python scripts/make_deck.py deck.md -o deck.pptx
# PDF of the same slides (for sending, printing, or a handout)
.venv/bin/python scripts/make_deck.py deck.md -o deck.pdf
--format pdf overrides the extension. --theme dark for a dark room, --font lato
to pin the family, - to read stdin.
Output formats
.pptx | .pdf | |
|---|---|---|
| Editable by the audience | Yes | No |
| Speaker notes | Yes, attached to each slide | No — notes are for the speaker |
| Fonts | Name only; the viewer's machine supplies them | Embedded, so it looks the same everywhere |
| Use for | Presenting, review, hand-off | Sending, printing, archiving, a handout |
| Requires | python-pptx | reportlab |
Choose PPTX when the file will be edited or presented from someone else's laptop. Choose PDF when it leaves the building. Do not produce both unless asked — two artefacts drift apart immediately.
Typography and layout defaults
| Setting | Default | Why |
|---|---|---|
| Family | Lato (--font) | Humanist sans, open apertures, calm; close to Frutiger in temperament |
| Fallbacks (PDF only) | Source Sans 3 → Inter → IBM Plex Sans → Fira Sans → Noto Sans → DejaVu Sans | First installed family wins; Helvetica with a warning if none |
| Titles | Same family, bold, plain | No display faces, no letter-spaced caps, no shadows |
| Title size | 34 pt (46 pt on the title slide) | Large enough to read from the back of a room |
| Body size | 26 pt, shrinking to 16 pt as a slide fills | A fallback, not a licence to crowd |
| Line spacing | 1.3 | Air between lines is what makes text look modern at projection size |
| Accent | One colour, a rule under each title | Structure without boxes, bars, or gradients |
| Margins | ~0.95 in / 68 pt | White space frames the content; nothing touches an edge |
| Colour | Ink #111111 on white, muted grey for meta | Neutral, so the accent means something |
In PowerPoint the font name is stored, not the font: the viewing machine must have
Lato. If it does not, PowerPoint substitutes something similar and the layout holds;
pass --font "Segoe UI" when the deck must look right on a stock Windows machine. The
PDF output embeds the font, so Lato must be installed on the machine that renders it
— or dropped into assets/fonts/.
Visual rules
- One idea per slide. If you need "and", you need two slides.
- Title the claim, not the topic. "Costs grew 3× faster than volume" beats "Costs". A reader who only reads titles should get the whole argument.
- Six bullets maximum, twelve words maximum. Beyond that the audience reads instead of listening.
- Whitespace is the design. When a slide feels empty, leave it empty. Resist the urge to add a second column, a border, or an icon.
- No decoration. No drop shadows, gradients, 3-D effects, clip art, or stock photos of handshakes.
- One accent colour, used once per slide. Here it is the rule under the title; do not add a second coloured element on the same slide.
- Left-align everything. Centred body text is hard to scan at projection size.
- Numbers carry a source and a date on the slide, in small text — not only in the speaker notes, because the deck outlives the talk.
Diagrams and illustrations
A diagram is worth a slide when it shows a relationship — a flow, a hierarchy, a before/after, a bottleneck — that bullets would flatten into a list. A picture that restates the text is noise.
- Give the diagram its own slide. Put
# The claimon top, the image below, and the claim doubles as the caption. - Generate it, don't draw it in characters. Use Graphviz, Mermaid (rendered to PNG), matplotlib, or a short script. ASCII art wraps and looks broken when projected.
- Ship PNG, about 2000 px wide, on a transparent or white background, using the accent colour from the deck.
- One idea per figure. Projection reduces detail further than you expect.
- Label the parts so the diagram works without narration.
# The retry sits outside the transaction

If a slide has both text and an image, the generator puts the text above and the image below. That is a compromise; prefer one or the other.
Input format
---
title: Where We Are With X
subtitle: Risk committee, March 2026
author: P. Walser
---
# The claim this slide makes
- evidence for it
- a detail under that evidence
- the number that matters: 38% (of 412 respondents, 2025)

> Speaker note: what I say out loud here (pptx only).
# Next claim
1. Numbered items keep their number
2. Second step
A plain line becomes body text without a bullet.
| Element | Becomes |
|---|---|
# heading | New slide + its title |
## | Sub-heading inside the slide (not a new slide) |
- / - | Bullet / sub-bullet |
1. | Numbered item, number preserved |
**bold**, *italic*, `code` | Inline styles |
 | Image, scaled to fit; alt text becomes a note |
``` fence | Monospace block |
| a | b | | Monospace row — real tables are out of scope |
| plain line | Body paragraph |
> | Speaker note (pptx only; not shown on the slide) |
Writing slides that work
- Open with the conclusion. Executives leave after slide three; put the answer there and the reasoning after.
- Use the notes for the argument, the slide for the evidence. Notes are also what makes the deck reusable by a colleague who did not write it.
- Roughly one slide per minute, minus five for questions.
- Structure that usually works: title → the answer → three supporting claims → what it means → what we are asking for.
Before and after rendering
- Show the slide titles as a list — that is the story — and get agreement.
- Check the deck length against the slot.
- Re-render from Markdown; never hand-edit the output, or source and file diverge within a week.
- Open the result and check the busiest slide for overflow and the titles for consistency. In the PDF, look for the warning about clipped text.
- Report the path, the format, and the slide or page count.
Troubleshooting
| Symptom | Cause |
|---|---|
python-pptx is not installed | PPTX output without the package; install requirements |
reportlab is not installed | PDF output without the package; install requirements |
no slides found | Slides start with # ; ## does not create one |
| Everything on one slide | Missing blank line, or headings written as **bold** |
| Notes missing | Note lines must start with > inside the slide; notes do not exist in PDF |
slide overflows, text clipped | Too much text for the slide; split it rather than shrinking |
| Wrong font in the PDF | Lato is not installed on the rendering machine; --font or assets/fonts/ |
| Wrong font in the PPTX | The viewing machine lacks it; try --font "Segoe UI" |
| Image missing | Path is relative to the Markdown file, not the working directory |

