![Beamer 将标题图形添加到顶部](https://linux22.com/image/459152/Beamer%20%E5%B0%86%E6%A0%87%E9%A2%98%E5%9B%BE%E5%BD%A2%E6%B7%BB%E5%8A%A0%E5%88%B0%E9%A1%B6%E9%83%A8.png)
我想要的是
我想将我的标题图形与顶部中心对齐。
代码
\documentclass{beamer}
\usetheme{Copenhagen}
\usecolortheme{beaver}
%no navigation symbols
\setbeamertemplate{navigation symbols}{}
%no headline
\setbeamertemplate{headline}{}
%no footline
\setbeamertemplate{footline}{}
%insert frame numbering
\addtobeamertemplate{navigation symbols}{}{
\usebeamerfont{footline}
\usebeamercolor[fg]{footline}
\hspace{1em}
\large \insertframenumber/\inserttotalframenumber
}
%no frame number on the title frame
\AtBeginSection[]{
\begingroup
\setbeamertemplate{navigation symbols}{}
\begin{frame}
\frametitle{Outline}
\tableofcontents[currentsection]
\end{frame}
\endgroup
}
%title frame does not count towards the numbering
\let\otp\titlepage
\renewcommand{\titlepage}{\otp\addtocounter{framenumber}{-1}}
%black title color
\setbeamercolor{title}{fg=black}
%black frame title color
\setbeamercolor{frametitle}{fg=black}
\titlegraphic{
\includegraphics[width=2cm]{logopolito}
\hspace*{1cm}~%
\includegraphics[width=2cm]{logopolito}
\hspace*{1cm}~%
\includegraphics[width=2cm]{logopolito}
}
\author{Author\\[10mm]{\small Supervisor: Supervisor}}
\title{Title}
\institute{Institute}
\date{Date}
\begin{document}
\begingroup
\setbeamertemplate{navigation symbols}{}
\frame[plain]{\titlepage}
\endgroup
\begin{frame}{Test 1}
\begin{columns}
\column{0.5\textwidth}
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
\column{0.5\textwidth}
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
\end{columns}
\end{frame}
\begin{frame}{Test 2}
\end{frame}
\end{document}
截图
目前的样子。
看起来应该怎么样。
答案1
不使用\titlegraphic
宏,你可以将图像放在包含标题页的框架的开头:
\documentclass{beamer}
\usetheme{Copenhagen}
\usecolortheme{beaver}
%no navigation symbols
\setbeamertemplate{navigation symbols}{}
%no headline
\setbeamertemplate{headline}{}
%no footline
\setbeamertemplate{footline}{}
%insert frame numbering
\addtobeamertemplate{navigation symbols}{}{
\usebeamerfont{footline}
\usebeamercolor[fg]{footline}
\hspace{1em}
\large \insertframenumber/\inserttotalframenumber
}
%no frame number on the title frame
\AtBeginSection[]{
\begingroup
\setbeamertemplate{navigation symbols}{}
\begin{frame}
\frametitle{Outline}
\tableofcontents[currentsection]
\end{frame}
\endgroup
}
%title frame does not count towards the numbering
\let\otp\titlepage
\renewcommand{\titlepage}{\otp\addtocounter{framenumber}{-1}}
%black title color
\setbeamercolor{title}{fg=black}
%black frame title color
\setbeamercolor{frametitle}{fg=black}
\author{Author\\[10mm]{\small Supervisor: Supervisor}}
\title{Title}
\institute{Institute}
\date{Date}
\begin{document}
\begingroup
\setbeamertemplate{navigation symbols}{}
\frame[plain]{
\centering
\includegraphics[width=2cm]{logopolito}
\hspace*{1cm}~%
\includegraphics[width=2cm]{logopolito}
\hspace*{1cm}~%
\includegraphics[width=2cm]{logopolito}
\titlepage}
\endgroup
\begin{frame}{Test 1}
\begin{columns}
\column{0.5\textwidth}
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
\column{0.5\textwidth}
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
\end{columns}
\end{frame}
\begin{frame}{Test 2}
\end{frame}
\end{document}