My table looks like this:
The left column will contain words, like it is now, and in the right column I want to add these small pictures (some are a bit bigger than this one) in every row.
I have two problems however, as can be seen from the image linked:
-
how do I center the text of the first column properly? Tight now it is a bit pushed to the bottom of the field.
-
how do i center the image in the field? Right now it is pushed against the top wall of the table.
My code looks like this:
\begin{table}[h]
\centering
\begin{tabular}{l|l}
\textbf{Verb} & \textbf{Example} \\ \hline
``goes-to'' & \includegraphics[scale=1]{images/appendix/B/1.png} \\ \hline
``walks-to'' & \\ \hline
``says to'' & \\ \hline
``chats to'' &
\end{tabular}
\caption{My caption}
\label{my-label}
\end{table}
Best Answer
Here is a solution with some vertical padding. The
cellspace
package is done for that: it defines a minimal vertical spacing at the top and the bottom of cells in columns with a specifier prefixed withS
. With themakecell
package, you can have line breaks in cells, thus allowing for several aimges in a single cell: