How to make a long vertical image (using wrapfig
) span over two questions from exsheet
package? The following code does not produce a satisfactory result.
\documentclass{book}
\usepackage{lipsum}
\usepackage{wrapfig}
\usepackage[demo]{graphicx}
\usepackage{exsheets}
\begin{document}
\begin{wrapfigure}{r}{0.25\textwidth}
\includegraphics[width=3cm,height=8cm]{}
\end{wrapfigure}
\begin{question} \lipsum[1] \end{question}
\begin{question} \lipsum[2] \end{question}
\begin{question} \lipsum[3] \end{question}
\end{document}
The problem is that all the subsequent questions have an odd blank space until I use \clearpage
.
UPDATE I found one solution which is not perfect. If onу takes wrapfigure
together with the first two questions in \parbox{}
, other questions are not affected. But still there is too much of white vertical space in the second Exercise. It can be adjusted specifying number of "narrow lines" in wrapfigure like so: \begin{wrapfigure}[19]{r}{0.25\textwidth}
. But I am still looking for a fully automated solution.