-
Notifications
You must be signed in to change notification settings - Fork 11
Figure environment
The figure environment is a subclass of box one that is specialized for rendering figures.
The syntax is the following:
$figure
$style[style_options]
$caption[caption_options]{caption}
$content[content_options]{content}
$endfigure
where the elements are the same of box environment, but:
- the
content_type
andcaption_type
are automatically set tofigure
andFigure
respectively; anyhow they can be still specified inside the$figure/$endfigure
environment; - the
content
must be the (relative to the root) path of an external figure file; - no matter the order of
$caption
/$content
statements, the caption is always placed below the content.
Consider the following code:
$figure
$content[padding:1% 5%;width:44%;box-shadow: 7px 7px 5px rgba(200,200,200,0.3);border-radius:25px]{images/matisse-universe-no_bg.png}
$caption(none){MaTiSSe.py **Universe**}
$endfigure
This example defines a figure with a shadowed box and a caption without a prefixing class into which the contents are formatted by means of markdown syntax (do you note the double **
emphasizing the word Universe?).
Note that, as all other box subclass, the themes of figure environments can be defined once for all into the preamble in order to not have to repeat the styling options for each figure. The syntax for defining the figures styles is commented into the theming section in the following.
Home | About | Getting Started Guide | Usage | Copyright © 2014 szaghi