☰ Click for Table of Contents
BookWiki Documentation
Copyright 2026
Rance D. Necaise

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:

ValueDescription
thin1px width frame (default)
medium2px width frame
thick3px width frame
solidsolid frame style (default)
dasheddashed frame style
dotteddotted frame style
smallgapadds a 5px gap between the frame and contents
medgapadds an 8px gap
biggapadds a 10px gap
leftfloat a fixed width block to the left and leave space to the right.
rightfloat a fixed width block to the right and leave space to the left.
Plugin:  FrameBlock
Example
source
  1. \begin{framed}[width=3in style=biggap]
  2. 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.
  3. \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
  August 30, 2026 at 11:12 AM