Usage
To apply the filter, use the following option with pandoc:
$ pandoc --filter pandoc-beamer-block
Explanation
In the metadata block, specific set of classes can be defined to
decorate div elements by blocks
The metadata block add information using the pandoc-beamer-block entry
by a list of definitions:
pandoc-beamer-block:
- classes: [info]
- classes: [alert]
type: alert
title: Danger
The metadata block above is used to add a block environment around
divs which have info class and a alertblock environment to divs
that have only a alert class.
Each entry of pandoc-beamer-block is a YAML dictionary containing:
classes: the set of classes of thedivs to which the transformation will be applied. This parameter is mandatory.type: the block type (eitheralert,example,info,theorem,proof,corollary,definition,lemmaandfact)title: an optional default title to use
Example
Demonstration: Using pandoc-beamer-block-sample.txt as input gives output file in pandoc-beamer-block-sample.pdf.
$ pandoc \
-t beamer \
-V theme:Warsaw \
--filter pandoc-beamer-block \
-o docs/images/pandoc-beamer-block-sample.pdf \
docs/images/pandoc-beamer-block-sample.txt