Framed Blocks
The document module defines the framed environment for creating blocks that are framed or for adding a frame around other blocks. This is similar to the framebox environment in LaTeX.
document module
\begin{framed}[width=dim|fit height=dim style=cssnames]
...
\end{framed}
Create a basic div block that is framed with a thin solid border. The block can have an optional size and/or style css class names. This environment can be used to create an entirely framed block or simply add a frame around an existing block which fits the size of the enclosed block.
Keys:
- width
-
The width of the block given as an HTML dimension. To add a frame around another block, set width=fit. The default is width=100%.
- height
-
The height of the block. The default is its natural height.
- style
-
The name of one or more block specific css class names for modifying the default style of the block. Several default styles are defined for the framed environment which can be used to change the frame style and thickness and the gap between frame and the contents:
Value Description thin 1px width frame (default) medium 2px width frame thick 3px width frame solid solid frame style (default) dashed dashed frame style dotted dotted frame style smallgap adds a 5px gap between the frame and contents medgap adds an 8px gap biggap adds a 10px gap left float a fixed width block to the left and leave space to the right. right float a fixed width block to the right and leave space to the left.
Plugin: FrameBlock
Example
source
- \begin{framed}[width=3in style=biggap]
- This is a framed block of text. This environment can be used for text and/or any type of blocks and elements similar to a minipage in LaTeX.
- \end{framed}
This is a framed block of text. This environment can be used for text and/or any type of blocks and elements similar to a minipage in LaTeX.
results