[Tex/LaTex] Figures and text side by side

floatsminipagesubfloatstwo-column

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 the wrapfig package could be used; in comments it was mentioned that the subfigures should appear one below the other:

\documentclass{scrreprt}
\usepackage{wrapfig}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{caption}
\usepackage{lipsum}

\begin{document}

\begin{wrapfigure}{l}{0.28\textwidth}
    \centering
    \captionsetup{format=plain}
    \subfloat[]{\includegraphics[width=3cm]{example-image-a}}\par
    \subfloat[]{\includegraphics[width=3cm]{example-image-a}}\par
    \subfloat[]{\includegraphics[width=3cm]{example-image-a}}\par
    \subfloat[]{\includegraphics[width=3cm]{example-image-a}}\par
    \subfloat[]{\includegraphics[width=3cm]{example-image-a}}
    \caption{some fancy caption}
\end{wrapfigure}
\lipsum[1-4]

\end{document}

enter image description here

Since you are loading the caption package, you could as well use the subcaption package instead of subfig and its subfigure enviornment or its \subcaptionbox command; an example using the latter:

\documentclass{scrreprt}
\usepackage{wrapfig}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{lipsum}

\begin{document}

\begin{wrapfigure}{l}{0.28\textwidth}
    \centering
    \captionsetup{format=plain}
    \subcaptionbox{}{\includegraphics[width=2cm]{example-image-a}}\par
    \subcaptionbox{}{\includegraphics[width=2cm]{example-image-a}}\par
    \subcaptionbox{}{\includegraphics[width=2cm]{example-image-a}}\par
    \subcaptionbox{}{\includegraphics[width=2cm]{example-image-a}}\par
    \subcaptionbox{}{\includegraphics[width=2cm]{example-image-a}}
    \caption{some fancy caption}
\end{wrapfigure}
\lipsum[1-2]

\end{document}