-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Christophe Demko edited this page Feb 1, 2017
·
11 revisions
In the metadata block, specific set of classes can be defined to decorate HTML div
tag by admonition generated from the mdframed
LaTeX package
The metadata block add information using the pandoc-latex-admonition
entry by a list of definitions:
# order of definition is important
latex-admonition:
- color: FireBrick
classes: [admonition, danger]
position: right
linewidth: 4
- classes: [admonition]
The metadata block above is used to add a red
admonition to div
s which have admonition
and danger
classes and a gray
admonition to div
s that have only a admonition
class.
Each entry of pandoc-latex-admonition
is a YAML dictionary containing:
-
classes
: the set of classes of thediv
s to which the transformation will be applied. This parameter is mandatory. -
color
: property taken from the X11 color collection. -
position
: the position of the admonition (left
by default orright
) -
liwewidth
The line width (2 by default) -
margin
the margin from the text (-4 by default. See https://www.ctan.org/pkg/mdframed) -
innermargin
the innermargin from the text (5 by default. See https://www.ctan.org/pkg/mdframed)
The following LaTeX packages are required:
mdframed
Demonstration: Using pandoc-latex-admonition-sample.txt as input gives output file in pdf.