我正在努力调整我的图片在表格环境中如下:
\documentclass[t]{beamer}
\usepackage{multirow}
\begin{document}
\begin{frame}[c]{Aligning images with a tabular environment}
\centering
\begin{tabular}{|c | c |}
\hline
\includegraphics[width=2cm]{img/440px-DandelionFlower} &
\multirow{2}{*}{\includegraphics[width=2cm]{img/440px-Blackwell_dens_leonis}}\\
\includegraphics[width=2cm]{img/440px-TaraxacumOfficinaleSeed} & \\
\hline
\end{tabular}
\end{frame}
\end{document}
答案1
借助单元格中的adjustbox
和选项:[t]
multrow
\documentclass[demo]{beamer}
\usepackage{multirow}
\usepackage[export]{adjustbox}
\begin{document}
\begin{frame}[c]{Aligning images with a tabular environment}
\centering
\begin{tabular}{|c | c |}
\hline
\includegraphics[width=2cm,height=2cm,
valign=t, margin=0pt 3pt 0pt 3pt]{img/440px-DandelionFlower}
& \multirow[t]{2}{*}{\includegraphics[width=2cm,height=4.2cm,
valign=t, margin=0pt 3pt 0pt 3pt]{img/440px-Blackwell_dens_leonis}}\\
\includegraphics[width=2cm,height=2cm,
valign=t, margin=0pt 3pt 0pt 3pt]{img/440px-TaraxacumOfficinaleSeed}
& \\
\hline
\end{tabular}
\end{frame}