I want to align a picture in a cell of a table. Following works as I want for the text in the top left cell and the picture is already vertically aligned, but not horizontally:
\begin{tabular}{m{0.04\textwidth}|m{0.325\textwidth}|m{0.6\textwidth}}
\toprule
\centering{a} & b & \includegraphics[draft]{test}\\ \midrule
d & e & f\\
\bottomrule
\end{tabular}
However placing \includegraphics{test}
into a \centering{}
results in following error message:
! Misplaced \noalign.
\midrule ->\noalign
{\ifnum 0=`}\fi \@aboverulesep =\aboverulesep \global \@...
l.338 ...test}}\\ \midrule
?
! Extra alignment tab has been changed to \cr.
<recently read> \endtemplate
l.339 d &
e & f\