I have the following code, that draws a dashed box:
\documentclass{book}
\usepackage{lipsum}
\usepackage{arydshln,paralist}
\setlength{\parindent}{0pt}
\newenvironment{mybox}[1]
{\vspace{6pt}\par\tabular{:p{\linewidth}:}\hdashline
\rule{0pt}{4ex}#1\\
\compactitem}
{\endcompactitem\hspace*{1ex}\\\hdashline\endtabular\vspace*{1ex}}
\begin{document}
\lipsum[1]
\begin{mybox}{There are many items:}
\item First item
\item Second item
\end{mybox}
\end{document}
The results are shown below (notice that the box is wider than it should):

However, it gets drawn too wide, not respecting my margins. How do I change the defined box environment to reduce it's width?
Thanks.
:@{}p{...}@{}:and see if that helps. – Yossi Farjoun Feb 23 '11 at 13:10