Graphics, Figures & TablesTable with figures and multirow

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Michael02
Posts: 2
Joined: Thu Sep 24, 2009 1:19 am

Table with figures and multirow

Post by Michael02 »

Hi,

I am trying to create a table which includes 5 figures.It should look like this:

Code: Select all

|      | b | c |
|  a   |---|---|
|      | d | e |
That means that I devide the table in 2 same sized parts. On the left side is one image and on the right side should be a table of 4 images.
Each image schould have its own caption a), b), c)...
and beneath the table there should be a caption for all images. I don't need a border.

Who can I do this. It works like this:

Code: Select all

\begin{tabular}{ccc} 
\multirow{2}{*}{  
	\includegraphics[width = 0.4\textwidth]{figures/1.PNG}
    } &  
	\includegraphics[width = 0.2\textwidth]{figures/2.PNG}
  &   
	\includegraphics[width = 0.2\textwidth]{figures/3.PNG}
  \\   &  
	\includegraphics[width = 0.2\textwidth]{figures/5.PNG}
  &  
	\includegraphics[width = 0.2\textwidth]{figures/6.PNG}
  \\ 
\end{tabular}
But then I don't have an caption.

Does someone have a solution for this problem?

Thanks for your help!

Michael

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Table with figures and multirow

Post by Stefan Kottwitz »

Hi Michael,

welcome to the board!
You could use the subcaption package, it belongs to the caption package.
Alternatively you could try it with subfig.

Stefan
LaTeX.org admin
Michael02
Posts: 2
Joined: Thu Sep 24, 2009 1:19 am

Re: Table with figures and multirow

Post by Michael02 »

Thanks a lot!
It works!
But I also had to use the minipage for every image.

Michael
Liz
Posts: 1
Joined: Sun Jan 30, 2011 5:56 am

Table with figures and multirow

Post by Liz »

I have a similar problem - I want 3 figures in the layout

Code: Select all

  |   | B |
  | A |---|
  |   | C |
...caption...
There doesn't seem to be any way of doing this with just subfig so I've tried this:

Code: Select all

\begin{figure}[ht]
  \centering
  \begin{tabular}{cc}
    \multirow{2}{*}{\label{fig:imgA}\subfloat[]{\includegraphics[width=5cm]{./imgA}}}
        & \subfloat[]{\label{fig:imgB}\includegraphics[width=5cm]{./imgB}} \\
        & \subfloat[]{\label{fig:imgC}\includegraphics[width=5cm]{./imgC}}
  \end{tabular}
  \caption{... caption ...}
  \label{fig:images}
\end{figure}
This ends up looking sort of like this:

Code: Select all

      | B |
      |---|
  |   | C |
..|.Ac|aption...
  |   |
with ImageA dropping down behind the caption text.

Is there a better way of doing this?
Post Reply