On paper
logbook show year YYYY --html PATH --print and logbook show trip ID --html PATH --print write a Year or a
Trip as a Volume: one HTML document designed for A4 and US Letter, laid out with CSS
paged media, that a browser turns into a PDF or sends to a printer. It is a reader (ADR 0013): a
function of the record at its head, derived every time, never written back. (Before 0.6 the two
commands were logbook year and logbook trip; those names still run them, after one line on stderr
naming the new one.)
logbook show year 2026 --html ~/2026.html --print # the year: a cover, contents, a spread a month
logbook show trip trip:2026-06-15:2026-06-20 --html ~/week.html --print # one trip: a spread a day; the id as `show trips --json` gives it
logbook show trip 2026-06-17 --html ~/week.html --print # the same trip, named by a day inside it
Without --print, --html writes the screen page the Year and the Trip already had: every table,
the twelve picks, the route with its map. --print is the book: fewer facts, set for paper, with
the keepers as hero photos. --print needs --html PATH; alone it exits 2 and says so.
What is on the pages
- The cover: the owner's name, the year or the trip's dates, the dates the record covers.
The name is the first entry of
namesinpolicy/owner.json; without one, the label a resolution line gives one of the owner's addresses; without that, the first owner email oflogbook.json. Nothing is guessed from an address. - Contents: the months of the year with their days, nights away, flights and keepers, and the year's trips; or the days of the trip with the night each ended at, its flights, who was there and its keepers. A trip then has its route on a page of its own: the trip page's map (one path per leg, one mark per stay) and the stays under it.
- One spread per month of the year, or per day of the trip. The first page of a spread is the facts: the nights (home, away, in transit, aboard each asset), the places by nights numbered to the map, who was there — the people confirmed present by the with module, never a proposal from a face or an all-day entry — the flights, the sleep and the steps when the record has health lines, the keepers by lane. Beside them the map: the track of the span drawn as an inline SVG from the location lines themselves, the owner's and, while aboard, the asset's, with the places marked and numbered and a scale bar; an equirectangular projection, no tiles, nothing fetched. The second page is the keepers (RFC 0024) as hero photos sized to the page, memory first then art: one photo takes the page, two are stacked, three or four are two by two, more are two by three and run on to another page. A month or a day with no keepers has its facts page and no photo page, and lays out the same.
- The colophon: the head the record was read at.
Page numbers come from the page counter and sit in the bottom margin; the cover has none.
The photos are the ones you starred
A Volume picks no picture of its own. A span's photo page is its keepers (RFC 0024): the photos
your library marked favourites (logbook derive keepers reads them in) and the photos you starred,
logbook star PHOTO-LINE [--note TEXT] or the star beside a photo on the Day page of serve
(the acts). A photo star is a keeper of lane memory; its note is printed under the photo
as its caption. To choose the pictures of a year's book or a trip's, star them; to take one out,
logbook unstar it. The Art album's keepers (lane art) are laid out too.
Photos are referenced, never copied
A keeper points at a photo/v1 line, and the document points at that photo's pixels where they
are: at the attachment under the record's attachments/ folder when the record stores them (a
SPEC §1.1 reference under content or attachment in the photo line), else at the original path
the library wrote in the line (path or original_path, at the payload's top or under extra,
as the Immich adapter keeps it), as a file URL when that path is absolute. A photo the record
only names gets a frame with its name in the same place, so the page lays out whether or not the
file is there — the synthetic demo record names its photos and stores none, so its fixtures are
all frames.
Two consequences. The document is one file, but the photos are not in it: move it to another machine and the frames are empty until the record comes too. And a browser shows what it can decode: Safari renders HEIC, Chromium and Firefox do not, so a library of HEIC originals prints with its frames empty in Chromium. An adapter that stores a JPEG rendition as the attachment prints everywhere.
Making a PDF
The document is plain HTML with one inline stylesheet, no script and nothing loaded from anywhere, so any browser prints it. The stylesheet sets the page's own margins, so leave the browser's at their default (or none) and keep background graphics on, else the photo frames and the map's border are dropped.
In a browser. Open the file, print, choose Save as PDF, the paper (A4 or Letter — the
layout fits both), and turn headers and footers off: the page numbers are the document's own.
Chromium and Safari lay out @page margin boxes; Firefox does not yet, so a PDF from Firefox has
no page numbers.
Headless Chromium, for a script or a cron job:
chromium --headless --no-pdf-header-footer --print-to-pdf=2026.pdf file:///Users/ines/2026.html
On a Mac the binary is /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome; with
Playwright installed, playwright ships one too. The paper is the browser's default (Letter in
the US locale, A4 elsewhere); --print-to-pdf has no paper flag, so to pin one set PAGE_SIZE
below, or print from the browser and choose it there.
The paper, and retheming
The layout fits both papers: the text block is set for the narrower width (A4's 210 mm) and the
shorter height (Letter's 279.4 mm), so one document prints on either without a cut or a reflow,
and the sheets differ only in their outer margins. @page { size: auto } leaves the paper to the
printer.
Every typographic constant — the margins, the text block, the six-column grid, the type scale (a
major third from 10 pt), the faces (the system's: a document that fetches nothing carries no
webfont), the ink, the map's box, the photo heights per layout — is in one module,
logbook/contrib/print_layout.py,
whose stylesheet() builds the one stylesheet from them. A designer retheming Volumes
changes that file and touches no logic: the renderer (logbook/contrib/print_page.py) names classes and
never a length.
The poster
logbook show year YYYY --poster [--sheet A2|A3] [--html PATH] writes the year on one sheet: twelve
columns of thirty-one squares, a month a column and a day a row, each square in the ink of where
the night was. Four inks, the four night tokens of print_layout.py — home (the quiet one:
most nights), away, aboard an asset, in transit (no stay reached the minimum) — and a
day the record has no night for shows the paper. Under the grid, one line: the countries of the
year with their days, as rollup countries counts them. Nothing else is on the sheet: no name of
a person, a place or an asset, no photo, no map, nothing fetched.
logbook show year 2026 --poster --html ~/2026-poster.html # A2, the default
logbook show year 2026 --poster --sheet A3 > ~/2026-poster.html # A3; without --html the document goes to stdout
The sheet is one inline SVG drawn in millimetres of A2 and scaled by the stylesheet to the sheet
chosen: A3 is A2 at 1/√2, the A series keeps its proportions, so the two sheets are the same
drawing and a print shop can make either. The page has no margin of its own, the drawing fills it;
print with the browser's margins off. --poster and --print are two different documents; the
command takes one. The reading is the Year's (year.window, one reading.read), each night
classified from the reading's nights: in transit when no stay reached the minimum, aboard before
away, home by the home region of places.json, else away. A year the record has no day in is an
empty grid that says so in its kicker.
The week on paper
logbook digest --paper [--week YYYY-Www | YYYY-MM-DD] [--html PATH | --json] writes the week as
four pages of A4, set from the same typographic constants as the Year — the text block, the grid,
the type scale, the ink — with the sheet pinned:
- The week: the seven days, Monday to Sunday, each with its one line — the line
logbook daysprints: the night after and the kilometres, then the flights, the stays with what attached, the people confirmed, the health triple and the usual sources with no line. - With: the people confirmed present (never a proposed face, never an all-day attendee), the most days first, by name only, never a count beside a name; then the week's keepers (RFC 0024) by day, lane and name.
- Promises due: the open promises due within the week, as the promises reader proposes them
(
promises.extract, narrowed the way the digest narrows them): when, who, the sentence, where it was said. - Read: what was read — the browse lines of the week, titles only, a title once a day, never the address and never the source.
logbook digest --paper --week 2026-W40 --html ~/w40.html # an ISO week, Monday to Sunday
logbook digest --paper 2026-10-01 > ~/w40.html # the week of a day; stdout without --html
logbook digest --paper # this week, by the record's clock
logbook digest --paper --week 2026-W40 --json # the paper's object, with the lines' ids
A week is an ISO week (2026-W01 begins on Monday 29 December 2025; 2026 has 53). The paper is
composed from the readers and derives nothing of its own; nothing is written, not even the
digest's question state, since the paper asks no question. The head the record was read at is in
the note at the foot of the last page.
The fixtures
tests/fixtures/demo/print_year_2026.html and print_trip_2026-06-15.html are the documents
the demo record of thirty days with seed 7 gives for 2026 and for its yacht week, pinned byte for
byte by tests/test_print_page.py, which also checks every document structurally — every tag
closed in order, one stylesheet, no script, no link, every src an img's, every img with
alt, nothing from the network — and that a day with no photos still lays out. Beside them,
poster_year_2026_A2.html and poster_year_2026_A3.html are the same record's poster on both
sheets and paper_week_2026-W25.html its yacht week on paper, checked structurally by
tests/test_year_poster.py and tests/test_week_paper.py (a square a day in one of the five
classes, the four tokens in the legend, no name on the sheet; four pages, seven days, titles and
never an address). After a change to a renderer or the layout that is meant, uv run python
scripts/make_print_fixtures.py writes them all again. Open any fixture in a browser to see the
page; nothing in them is real.