这是我的上一个问题.我试图将 3 张图片放在一个框架中beamer
。两张图片并排放置。我试图在底部插入一张新图片。关于如何做到这一点,有什么建议吗?
\documentclass[xcolor={table,dvipsnames,usenames}]{beamer}
\graphicspath{ {image/} }
\definecolor{Gray}{gray}{0.85}
\definecolor{LightCyan}{rgb}{0.88,1,1}
\newcolumntype{a}{>{\columncolor{NavyBlue}}c}
\newcolumntype{b}{>{\columncolor{white}}c}
\begin{document}
\begin{frame}{}
\begin{columns}
\column{.5\textwidth}% half of the width
\begin{figure}
\includegraphics[width=\textwidth]{image/rabbit.png}
%\caption{Steps }
\end{figure}
\column{0.5\textwidth}% half of the width
\begin{figure}
\includegraphics[width=\textwidth]{image/rabbit.png}
\end{figure}
\end{columns}
\end{frame}
\end{document}
答案1
图像的定位逻辑与字母相同,因此你只需要一个段落并排放置两幅图像,另一个段落放置一幅图像
\documentclass[xcolor={table,dvipsnames,usenames}]{beamer}
\begin{document}
\begin{frame}{}
\includegraphics[width=.47\textwidth]{example-image-a}\hfill
\includegraphics[width=.47\textwidth]{example-image-b}
\includegraphics[width=\textwidth,height=50pt]{example-image-c}
\end{frame}
\end{document}
答案2
一个非常简单的解决方案,使用中心环境:
\documentclass[11pt]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usetheme{default}
\begin{document}
\begin{frame}
\frametitle{Test images}
\begin{center}
\includegraphics[width=.45\textwidth]{rabbit.png}
\includegraphics[width=.45\textwidth]{rabbit.png}
\includegraphics[width=.47\textwidth]{rabbit.png}
\end{center}
\end{frame}
\end{document}
“极值比”解决方案:使用绝对定位文本位置包裹:
\documentclass[11pt]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usetheme{default}
\usepackage[absolute,overlay]{textpos} %absolute positioning of text and graphic
\TPGrid[20mm,20mm]{20}{10}
\textblockorigin{3mm}{3mm}
\begin{document}
\begin{frame}
\frametitle{Test images}
\begin{textblock}{20}(16,0)
$(16,0)$\includegraphics[width=.5\textwidth]{rabbit.png}
\end{textblock}
\begin{textblock}{20}(6,5.5)
$(6,5.5)$\includegraphics[width=.5\textwidth]{rabbit.png}
\end{textblock}
\begin{textblock}{20}(-0.7,11)
$(-0.7,11)$\includegraphics[width=.5\textwidth]{rabbit.png}
\end{textblock}
\end{frame}
\end{document}