You can change the style of HTML slides by putting customized CSS
files in $DATADIR/s5/default
(for S5),
$DATADIR/slidy
(for Slidy), or
$DATADIR/slideous
(for Slideous), where
$DATADIR
is the user data directory (see
--data-dir
, above). The originals may be found in pandoc’s
system data directory (generally
$CABALDIR/pandoc-VERSION/s5/default
). Pandoc will look
there for any files it does not find in the user data directory.
For dzslides, the CSS is included in the HTML file itself, and may be modified there.
All reveal.js configuration
options can be set through variables. For example, themes can be
used by setting the theme
variable:
-V theme=moon
Or you can specify a custom stylesheet using the --css
option.
To style beamer slides, you can specify a theme
,
colortheme
, fonttheme
,
innertheme
, and outertheme
, using the
-V
option:
pandoc -t beamer habits.txt -V theme:Warsaw -o habits.pdf
Note that heading attributes will turn into slide attributes (on a
<div>
or <section>
) in HTML slide
formats, allowing you to style individual slides. In beamer, a number of
heading classes and attributes are recognized as frame options and will
be passed through as options to the frame: see Frame
attributes in beamer, below.