[texhax] A table with both images and text (format problem)

Lars Madsen daleif at imf.au.dk
Sat Jun 11 21:02:02 CEST 2005


just use p{...} on both columns (your pictures all have the same width).

If the pictures in your 'real' document does not have the same width use 
the array package and use >{\centering\arraybackslash}p{5cm} for the last 
column

\documentclass{report}

\usepackage{graphicx}
\begin{document}
   \begin{tabular}{|p{3cm}|p{5cm}|}
     \hline
     more more more more more more text
     &
%    \includegraphics[height=2cm,width=5cm]{picture.1.eps}
     \rule{5cm}{2cm}
     \\
     \hline
     more more more more more more text
     &
%    \includegraphics[height=2cm,width=5cm]{picture.2.eps}
         \rule{5cm}{2cm}
     \\
     \hline

   \end{tabular}
\end{document}

Note:

p{3cm} is like \parbox[c]{3cm}{...}








-- 

/daleif

``You cannot help men permanently by doing for them 
what they could and should do for themselves. ''
  -- Abraham Lincoln



More information about the texhax mailing list