我正在使用Beamer
带有columns
环境的类。我能够使用从顶部开始显示文本\documentclass[t]{beamer}
,但图像始终出现在列的中心,这看起来很糟糕。
问题:我怎样才能将图像置于顶部?
我的代码如下:
\documentclass[t]{beamer}
\begin{document}
\section{Getjag}
\subsection{Getjag}
%slide - 1
\begin{frame}
\frametitle{External ports in Getjag}
\input{slide_1}
\end{frame}
代码\input{slide_1}
如下:
\begin{columns}
\column{0.5\textwidth}
\begin{itemize}
\item Best in class Manipulation title winner team used simulation for their tail operated robot.
\item Simulation displays the exact orientation of flipers, manipulator arm etc.
\end{itemize}
\column{0.5\textwidth}
%\centering
\begin{figure}
\includegraphics[width=5.5cm,height=5cm]{simulation}
\caption{Tail operated robot team.}
\end{figure}
\end{columns}
答案1
使用操作minipages
对齐t
和\linewidth
图像宽度(而不是固定长度):
\documentclass[t]{beamer}
\begin{document}
\begin{frame}
\frametitle{External ports in Getjag}
\begin{minipage}[t]{0.45\textwidth}
\begin{itemize}
\item Best in class Manipulation title winner team used simulation for their tail operated robot.
\item Simulation displays the exact orientation of flipers, manipulator arm etc.
\end{itemize}
\end{minipage}\hfill
\begin{minipage}[t]{0.45\textwidth}
\centering
\begin{figure}
\includegraphics[width=\linewidth,height=5cm]{ctanlion}
\caption{Tail operated robot team.}
\end{figure}
\end{minipage}
\end{frame}
\end{document}
minipage
根据您的需要调整 s 的宽度。
CTAN 狮子绘画由 Duane Bibby 绘制。
答案2
我认为问题可能是你的图片宽度为 5.5 厘米,比你的列大。你能尝试用小一点的吗?例如width = .9\textwidth
\documentclass[t]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\begin{document}
\begin{frame}
\begin{columns}
\begin{column}{0.5\textwidth}
\begin{itemize}
\item item1
\item item2
\end{itemize}
\end{column}
\begin{column}{0.5\textwidth}
\begin{figure}
\includegraphics[width=1.05\textwidth]{simulation}
\caption{Tail operated robot team.}
\end{figure}
\end{column}
\end{columns}
\end{frame}
\begin{frame}
\begin{columns}
\begin{column}{0.5\textwidth}
\begin{itemize}
\item item1
\item item2
\end{itemize}
\end{column}
\begin{column}{0.5\textwidth}
\begin{figure}
\includegraphics[width=.9\textwidth]{simulation}
\caption{Tail operated robot team.}
\end{figure}
\end{column}
\end{columns}
\end{frame}
\end{document}