我试过
\documentclass{book}
\usepackage{multirow}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\begin{tabular}{c c c}
\multirow{2}{2cm}{\includegraphics[scale=1]{test} } & \multirow{2}{4cm}{\includegraphics[scale=1]{test}} & \includegraphics[scale=1]{test2} \\
& & \includegraphics[scale=1]{test2} \\
\end{document}
但我得到的结果是:
我该如何对齐这些数字?
答案1
tabular
s 可以嵌套
\documentclass{article}
\usepackage{graphicx,array}
\begin{document}
\begin{figure}
\centering
\begin{tabular}{*{3}{m{1.2cm}}}
\includegraphics[width=1cm,height=2cm]{example-image} &
\includegraphics[width=1cm,height=2cm]{example-image} &
\begin{tabular}[b]{@{}c@{}}
\includegraphics[width=1cm,height=1cm]{example-image} \\ \includegraphics[width=1cm,height=1cm]{example-image} \end{tabular}
\end{tabular}
\caption{Caption}
\end{figure}
\end{document}
当然,如果高度必须相同,那么还有很多工作要做
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\parbox[][2.5cm][c]{1cm}{\includegraphics[width=1cm,height=2.5cm]{example-image}}
\parbox[][2.5cm][c]{1cm}{\includegraphics[width=1cm,height=2.5cm]{example-image}}
\parbox[][2.5cm][c]{1cm}{\includegraphics[width=1cm,height=1cm]{example-image}\par\vfill\includegraphics[width=1cm,height=1cm]{example-image}}
\caption{Caption}
\end{figure}
\end{document}