答案1
使用包\adjustimage
中的adjustbox
功能很简单:
\documentclass{article}
\usepackage{longtable}
\usepackage[export]{adjustbox}
\begin{document}
{
\adjustboxset{width=\linewidth,valign=c, margin=0pt 3pt 0pt 3pt}
\begin{longtable}[h]{|p{0.2\textwidth}|p{0.12\textwidth}|c|}
\hline
\adjustimage{}{example-image-duck}
& \adjustimage{}{example-image-duck} & $1.0$ \\
\hline
\end{longtable}
}
\end{document}