Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to use a table where the first column contains images and the second column contains text. Ideally the first column should have the width of the image and the rest of the pagewidth should be used for the second column.

So I tried to use this:

\begin{tabular}[htbp]{ll}
  \begin{figure}[htbp]
\begin{center}
\includegraphics{tag.png}
\end{center}
\end{figure}l & History\\
  LS2 & Wegener\\
  LS8 & Morik\\
  LS10 & Doberkat\\
\end{tabular}

But when I try to generate a PDF I get an error:

! LaTeX Error: Not in outer par mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.326   \begin{figure}[htbp]

? 

Any hints how I can solve that? Thanks!

share|improve this question
1  
The \begin{tabular}[htbp]{ll} doesn't make much sense. You mean either \begin{table}[htbp] or \begin{tabular}{ll}. –  Martin Scharrer Mar 11 '11 at 15:17
add comment

1 Answer

up vote 10 down vote accepted

Remove the figure and the center environment. They make no sense inside a tabular. Use only the \includegraphics command

share|improve this answer
    
Thanks this works. –  RoflcoptrException Mar 11 '11 at 15:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.