I'm struggling to put a series of five graphics side by side with the normal text. The figures are put as subfloat
and placed inside a common figure
environment to be able to give them a common caption
.
I tried minipages
so far, but they don't align side by side (old minipage
problem), because one of them is inside the figure
environment to be able to use subfloat
. multicol
seemed to be a solution, but didn't help at all.
Some ideas how to get the job done?
MnWE as follows:
\documentclass{scrreprt}
\usepackage{caption}
\begin{document}
\begin{figure}[hbt]
\begin{minipage}[h]{0.28\textwidth}
\centering
\captionsetup{format=plain}
\subfloat[]{\includegraphics{somegraphics}}
\subfloat[]{\includegraphics{somegraphics}}
\subfloat[]{\includegraphics{somegraphics}}
\subfloat[]{\includegraphics{somegraphics}}
\caption{some fancy caption}
\end{minipage}%
\end{figure}%
\begin{minipage}
some text... \lorem
\end{minipage}
\end{document}
Edit:
The wrapfigure
solution from Gonzalo worked well for me, but as the figures should span the whole page on the left side, you have to be careful not to make the wrapfigure
environment too large.
It easily extends to the next page without you even noticing it (because the visible part stays on one page). Try to set the height of the individual figures, so the whole environment fits one page.
Best Answer
The description of the problem suggests that you want text to wrap around the subfigure arrangement; in this case, the
wrapfigure
environment from thewrapfig
package could be used; in comments it was mentioned that the subfigures should appear one below the other:Since you are loading the caption package, you could as well use the
subcaption
package instead ofsubfig
and itssubfigure
enviornment or its\subcaptionbox
command; an example using the latter: