latex tabular vertical alignment to top?

Posted by shoosh on Stack Overflow See other posts from Stack Overflow or by shoosh
Published on 2009-09-23T17:02:59Z Indexed on 2010/05/14 10:24 UTC
Read the original article Hit count: 520

Filed under:
|
|
|

I'm trying to create a simple tabular with two cells of text and two images below them like so:

\begin{tabular}[h]{ c | c}
	\emph{Normal} & \emph{Cone} \\
	\includegraphics[width=0.39\textwidth]{images/pipe1} &
	\includegraphics[width=0.61\textwidth]{images/pipe2} 		
\end{tabular}

The first image is shorter than the second and I want it to be aligned at the top of the cell but for some reason it gets aligned to the bottom of the cell instead.

I've tried using the array package and do this:

\begin{tabular}[h]{ p{0.39\textwidth} | p{0.61\textwidth} }
	\emph{Normal} & \emph{Cone} \\
	\includegraphics[width=0.39\textwidth]{images/pipe1} &
	\includegraphics[width=0.61\textwidth]{images/pipe2} 		
\end{tabular}

But this doesn't change anything. The first image is still aligned to the bottom.
Why is that?
Could there be something else going on which forces the alignment to stick to the bottom?

© Stack Overflow or respective owner

Related posts about latex

Related posts about tabular