I'm trying to make a table including figures (all same size small drawings) as table entries. However, I can't get the text in the adjacent columns to be horizontally centered towards the figure. The text (the text in the columns "entry" and "text") always ends up aligned with the bottom of the figure.
Here's a MWE, but obviously, it doesn't work without the files for the figures, therefore I also attached the eps files.
Any help would be appreciated! I've just started using TeX and the examples I found so far aren't really helping me.
Code: Select all
\documentclass[11pt,a4paper]{article}
\usepackage{tabularx}
\usepackage{graphicx}
\usepackage{booktabs}
\begin{document}
\begin{table}
\begin{center}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\begin{tabular}{cC{1.5 cm}rcC{1.5 cm}r}
\toprule
entry & picture & text & entry & picture & text\\
\toprule
1 & \includegraphics[scale=0.4]{1} & \multicolumn{1}{r|}{1\%} &
3 & \includegraphics[scale=0.4]{3} & 3\% \\
2 & \includegraphics[scale=0.4]{2} & \multicolumn{1}{r|}{2\%} &
4 & \includegraphics[scale=0.4]{4} & 4\% \\
\bottomrule
\end{tabular}
\end{center}
\end{table}
\end{document}