Which md2 Does What
The RexxPub programs read the same Markdown and write it out in five
ways: a deck (md2slides), a web page (md2html, and the CGI, which serves
the same pages), a PDF (md2pdf), an EPUB (md2epub) and LaTeX (md2latex).
Much of what they read they share; some of it only makes sense in one of
them. This table says which feature works where, so that you can see at
a glance what they have in common.
✓ works; (✓) works in part (the note says how); – not there. The CGI
does what md2html does, unless a note says otherwise.
What each of them reads in the front matter is in The Front Matter at a Glance, and the whole
story in YAML Front Matter; the Rexx listings, in
Fenced Code Blocks; Rexx in
sentences, in Inline Rexx.
This table describes the programs of 2 November 2026 (md2slides
v368).
The Document
Front matter under rexxpub:; invalid YAML stops the
build |
✓ |
✓ |
✓ |
✓ |
✓ |
|
| Several files in one run (a folder) |
– |
✓ |
✓ |
✓ |
– |
|
Classes article, book,
letter |
– |
(✓) |
✓ |
– |
(✓) |
html: the look of the class on screen. latex: article
and book; also llncs, IEEEtran,
acmart. |
Title page (::::: title-page), abstract, keywords |
– |
(✓) |
(✓) |
(✓) |
✓ |
slides: the cover instead. pdf: the abstract and the keywords have
no look of their own. epub: as plain blocks. |
| Parts and chapters |
– |
(✓) |
✓ |
(✓) |
✓ |
epub: split into chapters. |
| Table of contents |
(✓) |
(✓) |
✓ |
(✓) |
(✓) |
slides: g. html: only the CGI fills
::: {#toc}. pdf: with page numbers in a book. epub: the
reader's own. latex: in books. |
| Lists of figures, tables and listings; index |
– |
– |
– |
– |
✓ |
latex: books. |
Numbered sections (section-numbers:) |
– |
✓ |
✓ |
✓ |
✓ |
slides: number-titles: instead. epub: none by
default. |
lang: (labels, hyphenation) |
(✓) |
✓ |
✓ |
✓ |
✓ |
slides: the caption labels. |
size: (the text size) |
– |
(✓) |
✓ |
– |
(✓) |
html: only the CGI, 10, 11, 13 or 14, in article,
book and letter. latex: 10, 11 or 12. |
margin:, page geometry |
– |
– |
✓ |
– |
(✓) |
latex: an article is A4 with 3 cm margins; a book takes
latex: paper:; a publisher's class decides its own. |
| Page numbers, running heads |
✓ |
– |
✓ |
– |
✓ |
slides: {page} in a margin box. |
{.newpage} |
– |
(✓) |
✓ |
– |
✓ |
html: when a page of a class is printed, and in the CGI's
print=pdf. |
Fields ({presenter}, {today}…),
defaults: files |
✓ |
– |
– |
– |
– |
|
| One self-contained file |
✓ |
– |
✓ |
✓ |
– |
|
A warning for one of our names in the wrong case
(.numberlines) |
✓ |
✓ |
✓ |
✓ |
✓ |
Not in the CGI. |
Rexx Code
```rexx highlighted by the Rexx Parser |
✓ |
✓ |
✓ |
✓ |
✓ |
|
Rexx fences caseless (```REXX,
.numberlines) |
✓ |
✓ |
✓ |
✓ |
✓ |
|
Dialects (executor, experimental,
unicode, cms) |
✓ |
✓ |
✓ |
✓ |
✓ |
|
style: (the colours), and a style file of your own |
✓ |
✓ |
✓ |
✓ |
✓ |
slides and html: the reader can change it (s, the
chooser). The CGI takes only the shipped styles. |
.numberLines, startFrom= |
✓ |
✓ |
✓ |
✓ |
✓ |
|
caption= |
✓ |
✓ |
✓ |
✓ |
✓ |
|
blanks= (the blanks shown) |
✓ |
✓ |
✓ |
✓ |
✓ |
|
source= (the code read from a file) |
✓ |
✓ |
✓ |
✓ |
✓ |
|
program= (pieces of one program) |
✓ |
✓ |
✓ |
✓ |
✓ |
|
size= on a listing |
✓ |
✓ |
✓ |
✓ |
– |
|
| Code inside the cells of a grid table |
✓ |
✓ |
✓ |
✓ |
✓ |
|
```jdor drawings |
✓ |
✓ |
✓ |
✓ |
– |
|
| A listing that breaks across pages |
– |
– |
– |
– |
✓ |
pdf: a listing is kept on one page. |
Other Code and Output
| Other languages highlighted by Pandoc |
✓ |
✓ |
✓ |
✓ |
✓ |
|
```output (what a program printed) |
✓ |
(✓) |
(✓) |
(✓) |
(✓) |
html, pdf, epub: a plain block, with no look of its own. latex: a
look of its own in a book only. |
`3 4`{.output} in a sentence |
✓ |
(✓) |
(✓) |
(✓) |
(✓) |
Shown as code, with no look of its own. |
.numberLines, source=,
blanks= on other code and output |
✓ |
✓ |
✓ |
✓ |
✓ |
|
caption= on other code and output |
✓ |
✓ |
✓ |
✓ |
✓ |
|
Key caps (```output {.keys},
[Enter]{.key}) |
✓ |
– |
– |
– |
– |
|
File boxes ({.file caption="data.txt"}) |
✓ |
– |
– |
– |
– |
|
An output a line at a time (steps=) |
✓ |
– |
– |
– |
– |
|
Marks
On a page every mark is there at once; on a slide each beat comes on
its step.
spot= on Rexx listings |
✓ |
✓ |
✓ |
✓ |
✓ |
|
spot= on output and other code |
✓ |
✓ |
✓ |
✓ |
✓ |
html, pdf, epub: the block loses its language's colours. |
Lines, texts, caseless, part |
✓ |
✓ |
✓ |
✓ |
✓ |
|
wash, ink, box,
bold, pen= |
✓ |
✓ |
✓ |
✓ |
✓ |
|
ring, hatch |
✓ |
(✓) |
(✓) |
(✓) |
(✓) |
hatch is drawn as a wash; latex draws ring
as a box. |
| The same beat in the same colour in two blocks |
✓ |
✓ |
✓ |
✓ |
✓ |
|
| Marks on prose, table rows, trees, regions of a picture |
✓ |
– |
– |
– |
– |
|
. mark, . explain, show,
hide, clear |
✓ |
– |
– |
– |
– |
|
Grounds and Frames
background=, border=,
border-width=, border-color= on a fence |
✓ |
✓ |
✓ |
✓ |
✓ |
|
blocks: for every block, code:,
output: |
✓ |
✓ |
✓ |
✓ |
✓ |
|
blocks: per language (bash:) and
other: (v366) |
✓ |
✓ |
✓ |
✓ |
✓ |
|
| The 148 colour names of CSS |
✓ |
✓ |
✓ |
✓ |
✓ |
|
Tables
| Pipe, simple, multiline and grid tables |
✓ |
✓ |
✓ |
✓ |
✓ |
|
| Balanced columns |
(✓) |
✓ |
✓ |
✓ |
✓ |
slides: short tables. |
cols=1:4 |
✓ |
✓ |
✓ |
✓ |
✓ |
|
.grid, .stripes on a table |
– |
✓ |
✓ |
✓ |
✓ |
slides: .plain takes the grid away. latex: not in the
two-column classes. |
tables: in the front matter |
– |
✓ |
✓ |
✓ |
✓ |
|
rules=solid\|dashed\|dotted |
– |
– |
– |
– |
✓ |
latex: not in the two-column classes. |
scale= |
✓ |
✓ |
✓ |
✓ |
✓ |
|
A captioned, numbered table (::: {#id .table}) |
– |
– |
– |
– |
✓ |
latex: in an article, with no list of tables. |
| A table a row or a cell at a time |
✓ |
– |
– |
– |
– |
|
Text, Pictures and References
Rexx in a sentence (`say "hi"`{.rexx},
[USE]{.kw}) |
✓ |
✓ |
✓ |
✓ |
✓ |
|
mentions: background: none |
✓ |
✓ |
✓ |
✓ |
✓ |
|
code: rexx (every code span is Rexx) |
✓ |
– |
– |
– |
– |
|
| Lists, as deep as you like |
✓ |
✓ |
✓ |
✓ |
✓ |
latex: nine levels. |
Pictures with a caption, numbered
(number-figures:) |
✓ |
✓ |
✓ |
✓ |
✓ |
|
listings:, figures: (how captions
look) |
✓ |
✓ |
✓ |
(✓) |
(✓) |
epub: label:, and where a listing's caption goes.
latex: label:, and numbering: for a book's
.listing blocks. |
| Footnotes |
✓ |
✓ |
✓ |
✓ |
✓ |
slides: at the foot of their slide, on a last slide or in the
presenter's notes (footnotes:). html: at the end of the
section. |
Citations (bibliography:, [@key]) |
✓ |
✓ |
✓ |
✓ |
✓ |
|
References to numbers and pages (.ref,
.ref-page…) |
– |
(✓) |
(✓) |
(✓) |
✓ |
latex: in books; elsewhere, a plain link. |
An index ([]{ix="..."}) |
– |
– |
– |
– |
✓ |
latex: in books. |
| Colour and HTML in text |
✓ |
✓ |
✓ |
✓ |
(✓) |
latex: the tags it knows, and no colour (md2latex says so). |
Only in a Deck
A deck is presented, one step at a time, so md2slides has a whole
family of its own: steps and animations (. click,
. steps, anim=), columns, levels and
flow=, roles and zones (. slide cover,
section, card), logos and kickers, arrows and
callouts, trees and drawings, layers, backgrounds and pinned pictures,
the presenter's timer, notes and window, the editors, and the keys. They
are all in the md2slides synopsis.
Only on Paper
md2latex writes for publishers' classes (acmart,
llncs, IEEEtran), numbers the lines of the
text for proofreaders, and sets any script with fallback fonts. md2pdf
lays out books with facing pages and running heads, and writes a PDF
outline. See their manuals.