答案1
用其他方法实现图像的垂直居中并不困难,但adjustbox
提供了一个简单的界面。
\documentclass{article}
\usepackage{graphicx}
\usepackage[export]{adjustbox}
\begin{document}
\begin{figure}
\centering
\makebox[.33333\columnwidth]{%
\includegraphics[width=2cm,height=2cm,valign=c]{example-image}%
}%
\makebox[.33333\columnwidth]{%
\includegraphics[width=4cm,height=3cm,valign=c]{example-image}%
}%
\makebox[.33333\columnwidth]{%
\includegraphics[width=2cm,height=2cm,valign=c]{example-image}%
}
\bigskip
\makebox[.33333\columnwidth]{%
\includegraphics[width=2.5cm,height=1.5cm,valign=c]{example-image}%
}%
\makebox[.33333\columnwidth]{%
\includegraphics[width=4cm,height=3cm,valign=c]{example-image}%
}%
\makebox[.33333\columnwidth]{%
\includegraphics[width=2.5cm,height=2cm,valign=c]{example-image}%
}
\caption{Six images}\label{foo}
\end{figure}
\end{document}