Graphics, Figures & TablesFigure and table together

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
kost
Posts: 3
Joined: Tue Sep 29, 2009 11:41 pm

Figure and table together

Post by kost »

Hello,

I want to insert picture into my document and under this picture I must create table.
The problem is, that it must be together like a one figure containing from picture, table, and after that description.
How can I keep this together in output? Because table is on one page, picture on other page...

Here is part of my code:

Code: Select all

\begin{figure}[!ht]
	\centering
		\includegraphics{D:/BP/Projekt/costmodel.JPG}
			
\end{figure}
\begin{table}[!ht]
	\centering
		\begin{tabular}{llccccc}
		
		& & M1&M2&M3&M4&M5 \\
		Specify&	Document Request&	V1&	V2&	&	V3& \\
		Design&	Architecture Description	&&	V1&	V2&	V3& \\
		Design&	Design Description&	&&		V1	&V2	& \\
		Encode&	Source code	&		&&&	V1	&V2 \\
		Test	&Test, report	&	&&	V1&	V2	&V3\\
		Write	&User Guide	&&	V1&&&			V2\\
		Activity &	Results & \multicolumn{5}{c}{Versions (Vi) of the work }\\
		&& \multicolumn{5}{c}{results at milestones (Mj)} \\

		\end{tabular}
		\caption{Activities and phases - the cost model (Sandmayr, 1991) }
	\label{fig:costmodel}
\end{table}
Sorry for my English, but I hope, you understand what I want to say...
Last edited by kost on Fri Oct 02, 2009 8:40 pm, edited 1 time in total.

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: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Figure and table together

Post by Stefan Kottwitz »

Hi kost,

welcome to the board!
You could use \includegraphics inside the table environment, for example:

Code: Select all

\begin{table}[!ht]
   \centering
      \includegraphics{D:/BP/Projekt/costmodel.JPG}
      \bigskip
         
      \begin{tabular}{llccccc}
      ...
      \end{tabular}
      \caption{Activities and phases - the cost model (Sandmayr, 1991) }
   \label{fig:costmodel}
\end{table}
Stefan
LaTeX.org admin
kost
Posts: 3
Joined: Tue Sep 29, 2009 11:41 pm

Re: Figure and table together

Post by kost »

Thank you for invitation and also for help.
I tried to use table inside figure, and it is vice versa... Thanks
Post Reply