I would like to have parts of the text set in smaller time with different indentation, and separated from the rest of the text visually (e.g. by horizontal rules). I would like to use this to set off less important parts of the text where some additional explanations are given (e.g. state a theorem, then give the proof in smaller type for those interested).
I copied a definition from another (old) document, but unfortunately it has some issues. Please help fix these problems.
An example is provided below. Uncommenting the problem parts will trigger the error (see the comments).
\documentclass[a4paper]{article}
\usepackage{graphicx}
\usepackage{framed} % For the "details" environment
% just a horizontal rule for the "details" environment
\newcommand{\optionrule}{\noindent\rule{1.0\textwidth}{0.75pt}}
% the "details" environment declaration.
\newenvironment{aside}{%
\def\FrameCommand{\hspace{2em}}
\MakeFramed {\advance\hsize-\width \small}\optionrule}
{\newline\optionrule\endMakeFramed}
\begin{document}
\begin{aside}
asd
%\begin{figure}
% (some figure)
% adding this figure causes a ``Floats lost'' error.
%\end{figure}
asd
% an empty line here causes a ``There's no line to end here error''
\end{aside}
\end{document}

