tags:

views:

31

answers:

2

Hi,

I have pictures included in a table:

\begin{tabular}[h]{|l|l|}
\hline
\includegraphics[scale=0.15]{Seite10.eps}  &
\raisebox{1,1cm}[1,1cm][0cm]{\includegraphics[scale=0.7]{Seite24L.eps}}\\
\hline
\end{tabular}\newline

Now I want captions for those pictures. I know \caption doesn't work out of a float enviroment, so I tried \captionof instead, which didn't work either. I cannot simply write the caption in a cell of the table, because in this case the figure wouldn't feature in the table of figures I want to generate at the end of my file.

I'm grateful for any hint....

A: 

To use \captionof load the caption package and use it inside an environment like minipage for instance. It might not work if used directly in a simple table cell.

This example works, using a p cell, so \captionof is called in a parbox:

\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{caption}
\begin{document}
\listoftables

\bigskip
\begin{tabular}[h]{|p{6cm}|l|}
\hline
\includegraphics[scale=0.15]{Seite10.eps} \captionof{table}{Test} &
\raisebox{1,1cm}[1,1cm][0cm]{\includegraphics[scale=0.7]{Seite24L.eps}}\\
\hline
\end{tabular}\newline
\end{document}
Stefan
I wanted to lable the individual pictures. So I took them out of the table and used to minipages next to each other, than using the minipage (thanks for the hint!) and captionof. Thank you for taking time to answer my question!
Erft
A: 

If all you want is a table of figures, try the subfigure package.

pseudosciencepeddler