I have used the following environment with good results:
\newenvironment{sidebar}{\def\FrameCommand{\color[gray]{0.8}\vrule width
5pt
\hspace{10pt}\color{black}}\MakeFramed{\advance\hsize-\width\FrameRestore}}{\endMakeFramed}
then in the text you can use
\begin{sidebar}
...
\end{sidebar}
an
My book has several long exhibits or examples that may be multiple pages
long (such as verbatim copies of software agreements and lists of
software packages and descriptions). Instead of putting at end of book
as appendix material, I am including them directly in the chapters with
the related