# How to adjust image and text location in a table?

I am trying to create a long-table which contains images in two columns and number in third. This is the code I used:

\begin{lontable}[h]{c|c|c}
\includegraphics[width=0.2\textwidth]{sample.png}
& \includegraphics[width=0.12\textwidth]{WM.png} & $1.0$ \\ \hline
\end{longtable}


I'm uploading the output for one row. I want to set the chess board image in the middle of the cell and the number 1.0 in the middle of the cell too. In picture, the red boxes are the locations where I want the image and text to be. Which commands should I use to adjust elements in the table?

• Try \raisebox{-0.5\height}{\includegraphics{...}}. Feb 22 '20 at 23:55

With use of \adjustimage from the adjustbox package this is simple:

\documentclass{article}
\usepackage{longtable}

\begin{document}
{
& \adjustimage{}{example-image-duck} & $1.0$   \\