# latex multirow figures with side caption

I need to create figures and caption as follows.

How can I do it?

You can do that by the »subcaption« package from the »caption« bundle.

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}

\begin{document}
\begin{figure}[!htb]
\begin{subfigure}[b]{0.3\textwidth}
\includegraphics[width=\linewidth]{example-image}
\caption{First}
\label{subfig-1:dummy}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.3\textwidth}
\includegraphics[width=\linewidth]{example-image}
\caption{Second}
\label{subfig-2:dummy}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.3\textwidth}
\includegraphics[width=\linewidth]{example-image}
\caption{Third}
\label{subfig-3:dummy}
\end{subfigure}

\begin{minipage}[b]{0.3\textwidth}
\caption{The quick brown fox jumps over the lazy dog.}
\label{fig:dummy}
\end{minipage}
\hfill
\begin{subfigure}[b]{0.3\textwidth}
\includegraphics[width=\linewidth]{example-image}
\caption{Fourth}
\label{subfig-4:dummy}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.3\textwidth}
\includegraphics[width=\linewidth]{example-image}
\caption{Fifth}
\label{subfig-5:dummy}
\end{subfigure}
\end{figure}
\end{document}


The image files are available with the »mwe« package installed on your system.

• Thanks for your reply, I am getting an error 'missing number treated as zero'. what should I do? Sep 11, 2013 at 15:41
• @user570593: Make sure that you have the latest version of the involved packages. Use the package manager of your TeX distribution to do an update if necessary. Sep 11, 2013 at 16:04