![将图像与表格环境对齐](https://linux22.com/image/387881/%E5%B0%86%E5%9B%BE%E5%83%8F%E4%B8%8E%E8%A1%A8%E6%A0%BC%E7%8E%AF%E5%A2%83%E5%AF%B9%E9%BD%90.png)
我正在努力调整我的图片在表格环境中如下:
\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}