如何将图形移动到框架的顶部?

如何将图形移动到框架的顶部?
\documentclass[t]{beamer}

\definecolor{links}{HTML}{2A1B81}
\hypersetup{colorlinks,linkcolor=,urlcolor=red}

\usetheme{Frankfurt}
\usecolortheme{dolphin}
\usefonttheme{structuresmallcapsserif}
\usefonttheme{serif}
\usepackage{multicol}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{caption}
\usepackage{hyperref}

\title{CAES/EPI Presentation Template}
\setbeamercolor{author}{fg=yellow}
\author{David Solan - Energy Policy Institute, Director\\David Koehler - Energy Policy Institute, Assistant Director}
\setbeamercolor{date}{fg=yellow}
\date\today



\begin{document}

{\usebackgroundtemplate
{\includegraphics[width=\paperwidth,height=\paperheight]{caestitlepage}}
\begin{frame}
    \titlepage
\end{frame}

\section*{Outline}

{\usebackgroundtemplate
{\includegraphics[width=\paperwidth,height=\paperheight]{caessubslide}}
\begin{frame}
\begin{multicols}{2}
    \frametitle{Contents}
    \tableofcontents
\end{multicols} 
\end{frame}

\section{WEPRC 2012}
\subsection{WEPRC 2012 Overview}
    \begin{frame}
    \begin{itemize}
    \frametitle{WEPRC 2012 Overview}
    \item \hyperlink{PARTICIPANTS}{\beamergotobutton{Participants}} 
    \item \hyperlink{PRESENTERS}{\beamergotobutton{Presenters}}
    \item \hyperlink{KEYNOTESPEAKERSPONSOR}{\beamergotobutton{Keynote Speaker/Sponsors}}
    \end{itemize}
    \begin{center}
    \includegraphics[width=\textwidth,height=0.4\textheight,keepaspectratio]{2012weprclayedonmap}
    \end{center}
    \end{frame}

\subsection{Participants}
    \begin{frame}[label=PARTICIPANTS]
    \frametitle{Participants}
        \begin{center}
    \includegraphics[width=\textwidth,height=0.4\textheight,keepaspectratio]{epiwelcome}
    \end{center}
    \end{frame}

\subsection{Presenters}
\begin{frame}[label=PRESENTERS]
\frametitle{Presenters}
\begin{center}
    \includegraphics[width=.9\textwidth,height=.7\textheight,keepaspectratio]{2012weprcpresenters}
\end{center}
\end{frame}
\begin{frame}
WEPRC PRESENTER LIST
\end{frame}

\subsection{Keynote Speakers/Sponsors}
\begin{frame}[t,label=KEYNOTESPEAKERSPONSOR]
\frametitle{Keynote Speakers/Sponsors}
\includegraphics[scale=.4]{2012weprcsponsors}%
\includegraphics[scale=.4]{2012weprckeynotespeaker}
\end{frame}

\end{document}  

答案1

您可以使用t框架的选项:

\PassOptionsToPackage{demo}{graphicx}
\documentclass{beamer}

\begin{document}

\begin{frame}[t,label=KEYNOTESPEAKERSPONSOR]
\frametitle{Keynote Speakers/Sponsors}
\includegraphics[width=.48\linewidth]{2012weprcsponsors}\hfill%
\includegraphics[width=.48\linewidth]{2012weprckeynotespeaker}
\end{frame}

\end{document}

在此处输入图片描述

线路

\PassOptionsToPackage{demo}{graphicx}

只是用黑色矩形替换实际图形;在实际文档中将其删除。

另外,我建议您不要使用 scale=,而是使用width=<length>或来控制尺寸,height=<length>就像我在示例中所做的那样。

相关内容