I have table with text in the first column and image in second. I want both columns to be top aligned. I use following code:
\begin{tabular}{p{3cm}l}
Internal state after adding 2 elements & \includegraphics[scale=0.4]{pics/queue_after_add.png} \\
Internal state non-concurrent execution & \includegraphics[scale=0.4]{pics/queue_sequential.png} \\
Internal state concurrent execution & \includegraphics[scale=0.4]{pics/queue_concurrent.png}\\
\end{tabular}
The result looks like this:
I also tried to insert \vspace{0pt} as some thread suggests, but result was the same.
Best Answer
\vspace{0pt}
would work if the graphics were in a column of typep{..}
. Inl
-columns you will have to move the graphics below the baseline with\raisebox{-\height}{....}
.