The Front Matter at a Glance


The Front Matter at a Glance


Everything a front matter can say, on one page: each key, the values it takes, and which of the md2 programs reads it. ✓ reads it; (✓) reads it in part (the note says how); – does not. The CGI reads what md2html reads, unless a note says otherwise. The whole story of the shared keys is in YAML Front Matter; of md2slides' own, in the md2slides reference.

This page describes the programs of 2 November 2026 (md2slides v368).

The Front Matter

The front matter is a YAML block on the very first line of the file, between two --- lines. RexxPub's settings go under rexxpub:; a few keys that Pandoc itself knows stay at the top level.

---
lang: en
bibliography: refs.bib
rexxpub:
  style: tokio-day
  docclass: article
  blocks:
    border: dotted
---

It is YAML, where yes, no, on and off are booleans (as in YAML 1.1), so a text that is one of those words goes in quotes, and so does a text with a colon and a blank in it. Invalid YAML stops the build, with its line; a value of the wrong shape (a list where a word goes) is reported and left out.

Outside rexxpub:

Key Values slides html pdf epub latex Notes
lang: A language tag: en, es, de… (✓) ✓ ✓ ✓ ✓ The language of the labels ("Listing", "Figure") and of hyphenation. slides: the labels.
bibliography: A file of references ✓ ✓ ✓ ✓ ✓ Turns citations on: [@key], and ::: {#refs} for the list.
csl: A style file – ✓ ✓ ✓ ✓ The citation style; it wins over --csl. Without either, rexxpub (the CGI: Pandoc's own).
title:, author:, date:, abstract:, keywords: Text – – – (✓) ✓ Pandoc's own: the title block, the abstract and the keywords, when the document has no ::::: title-page, ::: abstract or ::: keywords. epub: author:, date: and abstract: (the title is the first heading).
highlight-style: A Pandoc style: pygments, tango… – ✓ ✓ ✓ ✓ The colours of code that is not Rexx. slides: --pandoc-highlight, or the skin.

rexxpub: — Read by Several Programs

Key Values (default) slides html pdf epub latex Notes
style: A Rexx style (dark, light, tokio-day…), or a style file of your own ✓ ✓ ✓ ✓ ✓ The colours of the Rexx code. Default: tokio-day in a deck, light in LaTeX, dark elsewhere. The command line (--style, or the CGI's ?style=) wins.
docclass: article, book, letter, slides – (✓) ✓ – (✓) html: only the CGI reads it (md2html goes by the file's name). pdf: also default, or any class with a sheet in css/print/. latex: article and book.
size: A size in points, 6–36 – (✓) ✓ – (✓) The text size. html: only the CGI, 10, 11, 13 or 14, in article, book and letter. latex: 10, 11 or 12.
section-numbers: 0–4 (by class: 3 in an article, 2 in a book, 0 in a letter or slides; 0 in an EPUB) – ✓ ✓ ✓ ✓ How deep sections are numbered. slides: number-titles: instead.
number-figures: yes, no (yes; no in a deck) ✓ ✓ ✓ ✓ – "Listing 1:", "Figure 1:". latex numbers them always.
listings: A group: caption-position, caption-style, label-style, label, frame; and numbering (section, chapter) ✓ ✓ ✓ (✓) (✓) How the captions of listings look. epub: label and caption-position. latex: label, and numbering for a book's .listing blocks.
figures: A group: caption-position, caption-style, label-style, label ✓ ✓ ✓ (✓) – How the captions of pictures look. epub: label.
tables: A group: grid (yes, no), stripes (yes, no, a colour) – ✓ ✓ ✓ ✓ A grid, and stripes, on every table.
blocks: A group: background, border, border-width, border-color; and under code:, output:, other:, or a language (bash:) ✓ ✓ ✓ ✓ ✓ The ground and the frame of the code and output blocks. other: and the languages since v366.
mentions: A group: background (none) ✓ ✓ ✓ ✓ ✓ Rexx in sentences on no ground.
executor:, experimental:, unicode:, tutor: yes, no – (✓) ✓ ✓ ✓ The Rexx dialect of every listing. html: not in the CGI. slides: on the listing (```executor).
chapter: A number – ✓ ✓ – – The number before the sections' numbers, for a chapter on its own.

rexxpub: — Read by One Program

md2slides

Key Values (default) What it does
defaults: A file, several, or a list What decks share: the files it names, under the deck.
skin: A sheet (skin-default.css) Who presents: colours, faces, sizes. As -s.
master-pages: A sheet, several, or a list Where things go. As -mp.
img: A folder, several, or a list More folders of pictures. As --img.
picture-size: Pixels, or no (1920) The longest side a picture keeps; bigger ones are reduced with ImageMagick, if it is installed.
title: Text (the file's name) The browser tab's label.
code: A language, rexx Every code span with no braces is in that language.
font-prose:, font-mono: A family name The text face and the code face, over the skin's.
logo: A logo's name, several, or none The master's logos, on every slide.
header:, footer: A group: left, center, right, font-size The margin boxes; their text may hold fields.
number-titles: yes, no (no) Slides one after the other with the same title get ", 1", ", 2".
anim: A group: element: and page:, each with effect and duration The deck's default animations.
timer: A group: total, warn, popup-every, where, switch-to-seconds, sound, pause-message, countdown-message, record The presenter's timer.
card: A block of Markdown The deck's business card, for a card slide with nothing on it.
see-through: A per cent, or a group of callouts, boxes, trees, cover-art, pictures (15%) How much of the slide shows through what md2slides draws.
background:, veil:, background-fit: A picture; a colour and a per cent; cover, contain A picture behind every slide, and a veil over it.
gradients: A group of named gradients Gradients for the boxes of drawings.
view-source: yes, no (no) v and Shift+V show the Markdown of a slide.
print-notes: yes, no (no) The presenter's notes printed with the slides.
footnotes: slide, end, presenter (slide) Where the footnotes go: at the foot of their slide; on a last slide, "Notes"; or in the presenter's notes, with no mark on the slide.
about: yes, no, or a group (yes) The about page (a).
fit: yes, no (yes) A slide that does not fit is made smaller, to 45% at most.
license: A licence name (cc-by-sa…) A field, checked against the known licences.
any other name Text, or a list A field: {name} in the text, the margin boxes and the links. skin-wu-name: is for one skin.

md2pdf

Key Values (default) What it does
margin: 1 to 4 lengths, as in CSS (by class) The page margins.
css: A sheet, several, or a list The document's own style sheets.
outline: 0–6 (3) How deep the PDF's outline (bookmarks) goes; 0, none.

md2epub

Key Values (default) What it does
cover:, chapter-level: A picture; a heading level, 1–6 (1) The cover, next to the document; the headings that start a chapter. Over --cover and --chapter-level.

md2latex

Key Values (default) What it does
latex: A group: header, filter, paper, toc-depth, class-options, code, line-numbers, list-gaps LaTeX of your own, the paper, the contents' depth, the class's options, how code that is not Rexx is set, line numbers for proofreaders. See md2latex.

Which Wins

The command line wins over the front matter for style: (the reader of a page can change it too), for md2slides' skin:, master-pages:, img: and picture-size:, and, in md2latex, for --class and --pandoc-highlighting-style. Otherwise the front matter wins: it is the author's intention (highlight-style: wins over the command line in md2pdf and md2epub, and so do cover: and chapter-level: in md2epub). In md2slides, the deck wins over the files defaults: names, and a later file there over an earlier one.

→ Precedence, What Decks Share