Five sample decks and two skins for md2slides, to study and to start from. Every deck builds with either skin. And two programs that make a skin of your own from a presentation: from the master pages of an Impress one, and from the layouts of a PowerPoint one.
samples/md2slides/
decks/
makedeck.rex builds a deck with one of the skins
demo-deck.md an ooRexx lecture: logos, listings, steps, pictures
demo-deck-roles.md one slide of each kind: title, content, section, card
arrows-demo.md marks, arrows and file boxes
trees-demo.md class trees, a DOM tree, a tree in folders
everything.md the animation families, one slide or two each
img/ the decks' pictures
skins/
skin-default.css the neutral skin: colours, fonts, sizes
master-default.css its master: where things go on a slide
skin-rexxla.css the same look in the colours of RexxLA
master-rexxla.css its master, with the RexxLA logo in the corner
odp2skin.rex makes a skin and a master from an .odp presentation
pptx2skin.rex the same, from a .pptx presentation
skinmaker.cls what the two have in common
img/ the skins' pictures: the logos and the corner mark
The lecture slides in demo-deck.md, and the ideas behind
most of the others, come from Rony G. Flatscher's ooRexx courses. The
presenter in the decks, Dr. Jane Doe of Example University, is invented,
and so are the pages in img/browser.png and
img/source.png.
md2slides must be on the PATH (setenv, in
the root of the package, puts it there). Then, in
decks/:
[rexx] makedeck default -> demo-deck-default.html
[rexx] makedeck rexxla trees-demo -> trees-demo-rexxla.html
makedeck with no arguments lists the skins it finds. It
looks for them beside itself (../skins/), not beside the
deck, so it can be put on the PATH and used on decks of your own, in any
folder: the deck and its img/ are yours, the skins are
these. What it runs is md2slides with a skin and a master:
[rexx] md2slides --skin ../skins/skin-rexxla.css -mp ../skins/master-rexxla.css trees-demo.md trees-demo-rexxla.html
Open the HTML file in a browser and press F1 for the keys;
d shows the deck's health, and is where the editors of the
skin and the master are.
A skin is two files in skins/:
skin-NAME.css says who is presenting (colours,
fonts, sizes) and master-NAME.css says where things
go (the title band, the logos, the footer, the title slide). Copy
the default pair under a new name, and makedeck NAME builds
with it. To change them with a deck on the screen as the preview, build
the deck with md2slides --edit and use d, then
Skin or Master: Save
as… writes a copy under a new name. The manual has the details: skins
and masters, and every value they can set.
If your slides are in LibreOffice Impress, odp2skin
reads the master pages of a presentation and writes a skin that looks
like them; if they are in PowerPoint, pptx2skin does the
same with its layouts. In skins/:
[rexx] odp2skin lecture.odp mine -> skin-mine.css, master-mine.css, img/mine-*
[rexx] odp2skin lecture.odp --list the master pages, and the slides that use each
[rexx] pptx2skin lecture.pptx mine the same, from a PowerPoint presentation
[rexx] pptx2skin lecture.pptx --list its layouts, and the slides that use each
Below, master page is also a PowerPoint layout: what a layout does not have, it takes from its slide master (the logos and lines of the master, and where its title and text go, and how they look, when the layout does not say).
and then makedeck mine, in decks/. It does
not write a skin from nothing: it copies the default skin and master
(--from rexxla starts from the other one), and changes the
values that the master pages tell it:
--master-logo-NAME for each different picture, named after
the master page it comes from, and the box they go in;{page}, and
a name, like "Prof. Rony G. Flatscher", becomes
{presenter}, which each deck fills from its front matter),
its size and colour;It takes the master page that most slides use
(--master NAME chooses another one,
--cover NAME the one of the title slide). At the end it
lists every value it changed, with what it was and where the new one
comes from, and every shape of the master pages that has no value to go
to (a coloured bar at the side, a filled band behind the title): those
are for you to add by hand, in the master, if you want them. The editors
of d are the quick way to adjust the result.
A footer text of a PowerPoint layout counts only if the slides show it (in PowerPoint, a slide shows the slide number, the date or the footer only when it asks for them, with Insert, Header & Footer), and it says what most of those slides say. Pictures that a browser does not show (EMF and WMF, which older presentations have) are listed, not taken.
The two programs are also meant to be read. An .odp and
a .pptx are zip archives of XML files, and each program
reads its own: odp2skin the styles and their parents and
the shapes of a master page; pptx2skin the parts and the
ids that join them, the slide masters, the theme's colours and fonts,
and the layouts' placeholders. What they find, they write in the same
words, and the rest is the same for the two, in
skinmaker.cls: unpacking (with unzip, or
tar on Windows), a small XML reader, what each shape is,
and the line-by-line editing of a CSS file. Both also take a folder
where a presentation was unpacked, if you want to look at the files
yourself.
The logos are pictures in skins/img/, named in the
master as --master-logo-NAME; a slide asks for one with
.logo-NAME (.logo-rexx,
.logo-oorexx, .logo-bsf4oorexx, and in the
RexxLA master .logo-rexxla).