← Contents
What’s in a document’s front matter sets up its page: its masthead, the fonts it’s set in, its accent and what’s behind it. These work in any document, and in a deck they set every slide.
Front matter (Title, Author, Date, Tags, Speaker, Listener)
becomes the masthead; without a Title the file name is used. Speaker
and Listener head the two columns, the text’s and the asides’. Any other
key shows in the byline as key: value, but for those reader reads itself
(font:, accent:, background: and the rest below, type: (see
Work and present), open-until: (see
Forms), and a deck’s time:, paging: and
transition:) and one holding keys of its own (multibox:).
---
title: DevNexus, day 1
author: Josh Cummings
date: March 2026
tags: security, java
---
font: in the front matter is the font the document is set in, and
title-font: the font of its headings, when they’re to differ:
---
font: avenir-next
title-font: playfair-display georgia
---
{…} style: hyphens for its spaces, in any case.
reader loads no fonts, so it has to be installed. Give more than one and
they’re tried in order; the page’s own serif comes last.font: alone sets the headings too. title-font: sets every heading: the
page’s title, a slide’s, and the ones under them.{…} or a ::: block keeps the font it names.accent: in the front matter is the color of what reader draws in its accent.
It’s the document’s own instead of reader’s: links’ underlines, checkboxes and radios, progress bars, a timer, a picked card, a field’s outline when it has the keyboard, and the rest.
---
accent: "#4a7c59"
---
- [x] Walk
- ( ) Calm
- (x) Excited
progress:[3/7] of the week, and [a link](https://jzheaux.github.io/reader/).
#hex.background: in the front matter is what’s behind the page: a color, an
image, or both, in either order. In a deck it’s behind every slide, and a
slide says otherwise with the same line in its notes:
---
background: images/paper.jpg
---
# Every slide is on paper
---
# Except the point you came to make
<!-- background: midnightblue -->
#hex. On a dark one the text turns
light. It wins over the theme: a light one stays light in
Dark..png, .jpg,
.gif, .webp, .svg or .avif. It covers the page. reader can’t see
whether an image is dark, so say so with a color, which also shows while
the image loads: background: images/stars.jpg black.background: none in a slide’s notes leaves that slide plain.background: line isn’t shown with the notes, unless it doesn’t read
as a background.print: landscape or print: portrait says which way a deck’s sheets are
turned; see Export and print.