Before starting the question, I apologize for the large pictures. I had to use some long text to demonstrate the problem.
To generate something like:
I used the following command:
\setlength{\intextsep}{-1.5pt}
\begin{boxedminipage}{\textwidth}
\begin{wrapfigure}[3]{l}[0pt]{0pt}
\includegraphics[width=0.5in]{Information.pdf}
\hspace{-8pt}
\end{wrapfigure}
\lipsum[1-2]
\end{boxedminipage}
However, boxedminipage
does not split across pages, and I had to use mdframed
as mentioned here. So, the above code becomes like this:
\setlength{\intextsep}{-1.5pt}
\begin{mdframed}
\begin{wrapfigure}[3]{l}[0pt]{0pt}
\includegraphics[width=0.5in]{Information.pdf}
\hspace{-8pt}
\end{wrapfigure}
\lipsum[1-2]
\end{mdframed}
Unfortunately, the effect is not as expected:
How can I use
mdframed
andwrapfig
together?
PS: The framed
package does not seem to suffer from this problem; however, its output is not satisfactory for my purposes: framed
closes the frame when it is split across page boundaries, and reopens it on the next page. This does not show that the frame is to be continued on the next page. To see what I mean, compare the output of
\begin{framed}
\lipsum
\end{framed}
and
\begin{mdframed}
\lipsum
\end{mdframed}