md2slides Synopsis


md2slides Synopsis


Everything a deck can do, on one page, in the notation decks are written in: the . lines. One line per feature: what to write, and what it does. Each group ends with a link to the md2slides page, which tells the whole story. The same features in braces form are in the reference. Which of them the other md2 programs share is in the table of features.

Two sample decks show every feature at work, one per slide: demo-deck.md (the features) and demo-deck-roles.md (the roles and zones of a slide, built with every skin). They are in the decks/ folder of the sample skins and masters. Shift+V on a slide shows its Markdown beside it.

This page describes md2slides v368 (2 November 2026).

The Command Line

[rexx] md2slides [options] deck.md [destination]

The deck is written to deck.html in the current folder, unless a destination is given. -s/--skin and -mp/--master-pages name the skin and the masters; --img and --picture-size, the pictures; --csl, the citation style; --pandoc-highlight, the colours of code that is not Rexx; --edit, the editing server.

→ Usage, Command Line

The Shape of a Deck

---
rexxpub:
  defaults: rony.yaml
  logo: oorexx
  code: rexx
---

. slide cover
# Procedural and Object-oriented Programming

. subtitle
Introduction to ooRexx

. slide kicker="Basics" reference="Cf. rexxref.pdf (1.)"
# What Is Rexx?

. steps
- A "human-centric" language
    - Designed by Mike F. Cowlishaw at IBM, 1979
- Few rules, few keywords
Write What it does
--- … --- on line 1 The front matter (YAML). md2slides' settings go under rexxpub:.
# Title Opens a slide with that title. Two # lines in a row: a title of two lines. ## and below are not slides.
. slide options, just above the # The slide's options: kicker=, logo=, reference= (any field), anim=, time=…
. slide with no # after it A slide with no title.
. word … just above a block md2slides' words for that block: a step, options, a name, a keyword. In a list, indented as the item is.
\. at the start of a paragraph A paragraph that starts with a dot.

The build reports a . line that is ours but for a misspelled word (. clik), with its line. > is always a Markdown quotation: a deck written with > lines, before v315, is turned into dots by gt2dot.rex.

→ Writing a Deck, The . Lines

Roles and Zones of a Slide

Write What it does
. slide cover The title slide. . subtitle before a paragraph: its subtitle; . cover-art before a picture or drawing: its art.
. slide section A section opener, laid out like the cover; g lists it, the timer names it. section="Short" names it shorter; time=10 gives it ten minutes.
. slide card The closing business card: first line the name, second the role, the rest details. With nothing on it, the card comes from card: in the front matter (or the presenter and the affiliation). ::: card once per person; ::: {.card .tight}: an institution's card.
. slide logo=rexx,oorexx The master's logos (the first at the right). Without logo: in the front matter, for this slide only; with it, from this slide on. logo=none: no logo.
. slide kicker="Commands, #" A small line above the title; # numbers it through the deck.
. slide reference="…", ::: course … ::: A field for this slide alone, as an option or as a zone.
::: footer-left … ::: That margin box, for this slide alone (header-left … footer-right).
. notes before a block The presenter's note: never on the slide; n shows it.
. slide pause="5 Coffee break" A pause: the timer stops, and a countdown shows (pause=15:30, a time of day; pause="Questions", counting up).
. slide countdown=5 A big countdown when the slide is presented.
. slide background=img/a.jpg veil="white 20%" A picture behind this slide, and a veil over it that lets 20% of it through. . background before a picture does the same.

→ Roles, Zones, Backgrounds, The Presenter's Timer

Steps

Write What it does
. click / . after / . with The next block is a step: on a press; by itself, when the step before has finished; together with it.
. steps Before a list, each item is a step, sublists too; before a table, each row; before a listing or an output, each line.
. steps above an item that is not the first That item and every one after it is a step (v363).
. static, . after, . with above an item of a steps list static: no step of its own (there from the start, or, under an item, with that item); after: by itself; with: with the one before.
. after steps, . steps each=after The first item comes by itself, the others on a press; every item comes by itself.
. steps=cells head=with-row A table cell by cell; the header with the first row.
. steps="1-2,3-4" An output (or a listing) a group of lines per step.
. group … . end group Several blocks as one: one set of options, and, with a step word (. click group), one step.
. id=#pic A name for the next block: arrows, callouts, pins and shows point at it as #pic.
. later id=#pic … . click show #pic A block written where it stands, that comes in when the show says. . click show #out:1-4: some lines of a later output.
anim=fade-up, anim-duration=0.5 on a step How the step comes in (fade, fade-up/-down/-left/-right, scale-in, blur-in, cut).
wait-before=2, wait-after=, wait= on a step A pause before the step, after it, or both. They time the steps that come by themselves; on a step that comes with a press the build warns.
wait-before=, wait-after=, duration= on . slide The slide built by the clock.
anim: in the front matter The deck's default effects, for steps and for slides.

The build says when an item has no step but comes after one that has (v363; not in a steps list, v365).

→ Animation, Steps

Layout

Write What it does
. columns 7 5 … . next column … . end columns Columns with their shares; ruled draws a line between them.
. flow=3 A long list in three columns (fill=rows: row by row).
. level=2 A block lined up with the text of a level-2 item: code, output, a table.
. indent=3em, . scale=0.8 A block pushed in; a block at 80%.
. label A small bold caption, as Output:.
. plain, . tight A list without bullets, a table without its grid; rows close together.
. cols=1:4 The proportions of the columns of the table that follows.
. pin=top-right The next picture or block over the slide, at that corner (over=#id, offset="1em 2em").

A slide that does not fit is made smaller when it is shown, down to 45% (fit: no turns that off).

→ The Grid, Scaling a Block, Pinned Pictures and Blocks

Code and Output

Write What it does
```rexx A Rexx listing, highlighted by the Rexx Parser. The dialects: ```executor, . experimental, . unicode, . cms.
```output What a program printed: not highlighted.
```java, ```bash… Other languages, highlighted by Pandoc.
. numbered, . numbered=10 Line numbers, from 1 or from 10.
. blanks, . blanks=all Before a Rexx listing, the blanks that are data, or all of them, shown; before an output, . blanks shows them all.
. program=p1 on each piece Pieces of one program, on several slides, highlighted as one.
. file=data.txt before an output A file box: the data of a file, its name on top.
. keys before an output <Enter> drawn as a key cap. [Enter]{.key} in a sentence.
. caption="Hello.java" A caption above the listing; listings: and number-figures: say how it looks.
source=file.rex on the fence The listing read from a file.
background=, border=, border-width=, border-color= on the fence The block's ground and frame. blocks: in the front matter: for every block, for code:, output:, other: (code that is not Rexx) or one language (bash:; v366).
`say "hi"` with code: rexx Rexx in a sentence, highlighted. `3 4`{.output}: output in a sentence.
mentions: background: none Rexx in sentences on no ground.
style: tokio-day The Rexx colours to start with; s changes them while presenting.

The build says when a Rexx code span does not parse (it shows in red), and a class on a Rexx fence is dropped, with a warning: put a . click line before the listing instead.

→ Rexx Code, and Rexx in Prose, Listings, The Ground and the Frame of a Block

Marks

Write What it does
. mark id=#nv 2 "NOVALUE" before a listing A mark named nv on those words of line 2. 5-7: lines 5 to 7; "text": that text anywhere.
. mark 1 before a table Its rows, counted from 1 without the header.
. mark 20,30,60,70 before a picture A region of it, in per cent (left, top, right, bottom).
. mark "Array" "List" before a tree Its nodes; hull on the show draws one region round them, label= names it.
wash, ink, box, ring, hatch, bold, pen=2, pen=#c00 How a mark looks (wash is the default; bold on . mark since v367).
caseless, part The text in any case; inside words too (v360).
indent Marked lines as bands that start at their indentation.
anim=pen, anim=cut, anim-duration= on a show or a step mark How the marks come in: drawn left to right, or at once (fade is the default).
. click show #nv, . after show #a #b The marks come in now. clear puts out the ones before.
. click hide #nv That mark goes; the others stay.
. after mark 7-10 pen=1 A mark that is a step of its own, just after its block.
. explain "https" pen=1 after a listing The next line is a step that marks https in the listing above and in itself, with the same look (v364).
[`https`{.output}]{spot=u1} A mark in a sentence, lit with beat u1.
. click spot=amph before a layer A picture's layer that comes in with a beat of the listing.

The build says when a mark's text is not in its listing (v360).

→ The Spotlight, How a Mark Looks, Marking Prose

Arrows and Callouts

Write What it does
. after arrow #a -> #b An arrow between two things of the slide, as a step. <- back, <-> both ways, -- no heads.
#code:4, #code:4:"word", #tree:"Node", #pic:60,40 An end: a line, a word in a line, a node, a place on a picture.
label="…", bend=30, line=dashed, route=elbow, color=, width= How an arrow looks.
. click callout --> #code:2 at=right The next paragraph is a balloon pointing there. shape=arrow: a thick arrow with the text inside; --, <--, line=: a line instead of the tail.

→ Arrows, Callouts

Trees, Drawings and Pictures

Write What it does
. tree before a list The list drawn as a tree; . steps grows it. layout=columns flow=3: the root on top, its children in columns (. break, . under on an item). layout=folders icons: folders and files, one per line. [text]{.note}: a note beside a node.
. drawing ratio=2.4 width=80% … . end drawing Blocks placed with . at=x,y,w,h (per cent), framed with . box (round, square, dashed, dotted, bare, arrow=right, gradient=sunset), joined with . arrow.
. group id=#g … . end group, . use #g at=… A group drawn again, as often as you like; . use file.md2draw#g: a group from a file.
```jdor A JDOR drawing, as SVG.
. picture img/a.png width=40% A picture (![](img/a.png)); caption="…" for a caption.
. layers … . end layers Pictures stacked; a step word before a layer brings it in. offset=: a cascade.
img:, --img, --picture-size More folders of pictures; the largest size a picture keeps. Pictures named img/… are embedded in the deck; anything else is left as written.

→ Trees, Drawings, Copies of a Group, Pictures

The Front Matter

Key What it does
defaults: rony.yaml What decks share: the files it names, under the deck.
skin:, master-pages: (-s, -mp) Who presents (colours, faces) and where things go.
title:, font-prose:, font-mono: The browser tab's label; the text and code faces, over the skin's.
presenter:, course:… (any name) A field: {presenter} in the text, the margin boxes and links. skin-wu-presenter:: for one skin. md2slides adds {today}, {now}, {file-name}, {md2slides-version}…; {page}, {pages}, {section} and the timer's fields work in the margin boxes only.
header:, footer: (left:, center:, right:) The margin boxes; [ · {version}] is an optional group.
number-titles: yes Slides one after the other with the same title get ", 1", ", 2".
timer: (total:, warn:, sound:…) The presenter's timer.
card: The deck's business card.
blocks:, mentions:, listings:, figures: Grounds and frames; Rexx in sentences; captions.
see-through:, background:, veil:, background-fit:, gradients: How much of the slide shows through what md2slides draws; a picture behind every slide; named gradients.
view-source: yes, print-notes:, about:, fit: v and Shift+V show the Markdown; notes in print; the about page; fitting.
footnotes: (slide, end, presenter) Where the footnotes go: at the foot of their slide (the default); on a last slide, "Notes"; in the presenter's notes, with no mark on the slide.
bibliography: (outside rexxpub:) Citations, [@key], and ::: {#refs}.

Every key, with its values and the other programs that read it, is in The Front Matter at a Glance.

→ YAML Front Matter, Front Matter

Presenting

Key What it does
→ Space / ← Backspace Next step / back. Alt+PageDown / Alt+PageUp: the next / previous slide, complete. Home / End: the start / end of this slide; Ctrl+Home / Ctrl+End: the first / last slide.
g, a digit Go to a slide: pick, type its number, or search.
t, r, p, c The timer; start it; pause (a break); a countdown.
m, h The time on this slide; time per slide and section, runs compared.
n, Shift+F The presenter's notes; the deck on the projector and the presenter's window.
s The Rexx colours.
v, Shift+V The Markdown of the slide; beside it, as you go.
d The deck's problems, drawing on pictures, the master and skin editors.
a About this deck.
b, w, f, Esc, F1 Black, white, full screen (it starts the timer); clear; every key on screen.

On a touch screen a tap goes on, a swipe goes on or back, and a round button opens a bar of the same keys. A deck prints one slide per page, every step shown; Chrome and Edge make much smaller PDFs than Firefox.

md2slides --edit deck.md (--port to choose the port) opens the deck in the browser, and the editors of d save into the file.

→ Navigating a Deck, Keys