缩放图像以适合框架

缩放图像以适合框架

我正在尝试在 中的框架中插入两张图片beamer。我想添加的第二张图片不适合框架。更改scale中的值\includegraphics[scale=0.0005]{image/image.png}不适合框架中的图像。任何帮助都将不胜感激第一张图片第二张图片

\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{1\textwidth}
\begin{figure}
\includegraphics[scale=0.6]{image/rabbit.png}
\caption{Steps }
\end{figure}
\column{0.5\textwidth}
\begin{figure}
\includegraphics[scale=0.0005]{image/image.png}

\end{figure}
\end{columns}
\end{frame}
\end{document}

编辑:更新代码后

\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{.8\textwidth}% half of the width
\begin{figure}
\includegraphics[width=\textwidth]{image/rabbit.png}
\caption{Steps }
\end{figure}
\column{0.2\textwidth}% half of the width
\begin{figure}
\includegraphics[height=\textheight]{image/image.png}
\end{figure}
\end{columns}
\end{frame}
\end{document}

在此处输入图片描述

答案1

第一列是页面的宽度,你必须把它放到页面宽度的一半\column{.5\textwidth},而不是\column{1\textwidth}

不要\includegraphics[scale=0.0005]使用\includegraphics[height=\textheight]\includegraphics[width=\textwidth]

\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[scale=0.6]{image/rabbit.png}
\caption{Steps }
\end{figure}
\column{0.5\textwidth}% half of the width
\begin{figure}
\includegraphics[height=\textheight]{image/image.png}

\end{figure}
\end{columns}
\end{frame}
\end{document}

相关内容