我必须使用大学默认的标题页进行演示,但主题“新加坡”却显得太过分。
谁能告诉我如何从主题中排除标题页?
我的代码如下:
\documentclass{beamer}
\usetheme{Singapore}
... %packages%
%% Title slide formatting %%
\pgfdeclareimage[width=\paperwidth]{titlebackground}{images/title-slide-background.png}
\setbeamerfont{subtitle}{size=\tiny}
\setbeamertemplate{title page}{
\begin{picture}(0,0)
\put(-28.5,-163){%
\pgfuseimage{titlebackground}
}
\put(0,-75){%
\begin{minipage}[b][4.5cm][t]{0.5\textwidth}
\color{white}
\usebeamerfont{title}
{\inserttitle\\[0.9cm]}
\usebeamerfont{subtitle}
{\insertauthor\par}
{\insertinstitute\\[0.3cm]}
{\insertdate}
\end{minipage}
}
\end{picture}
}
%% General slide formatting %%
\definecolor{oxfordblue}{RGB}{4,30,66}
\pgfdeclareimage[width=0.9cm]{oxfordlogo}{images/oxford-logo.png}
\pgfdeclareimage[width=1cm]{mathslogo}{images/mathematics-logo.png}
\setbeamertemplate{frametitle}
{%
\begin{picture}(0,0)
\put(-8,-10){%
\color{blue}\insertframetitle
}
\put(-7,-20){%
\tiny\color{oxfordblue}\insertframesubtitle
}
\end{picture}
}
\setbeamerfont{page number in head/foot}{size=\large}
\setbeamertemplate{footline}[frame number]
%% Information (author, title, etc.) %%
\title[Short version of title]{Scattering \& blow-up phenomena for semi-linear wave equations} % short title for footer
\author%
{%
\sc{Author: Edmund A. Paxton}\\
\newline \sc{Supervisor: Prof. Luc Nguyen} \newline
}
\institute%
{%
\textit{Mathematical Institute}\\
\textit{University of Oxford}
}
\date[PoM2015]{CDT summer project report, September 2016} % short date for footer
\begin{document}
%% Content of slides %%
\end{document}
答案1
plain
您可以使用标题页的表单删除所有“主题”元素,例如标题或脚注。
\documentclass{beamer}
\usetheme{Singapore}
%% Title slide formatting %%
\pgfdeclareimage[width=\paperwidth]{titlebackground}{example-image}
\setbeamerfont{subtitle}{size=\tiny}
\setbeamertemplate{title page}{
\begin{picture}(0,0)
\put(-28.5,-163){%
\pgfuseimage{titlebackground}
}
\put(0,-75){%
\begin{minipage}[b][4.5cm][t]{0.5\textwidth}
\color{white}
\usebeamerfont{title}
{\inserttitle\\[0.9cm]}
\usebeamerfont{subtitle}
{\insertauthor\par}
{\insertinstitute\\[0.3cm]}
{\insertdate}
\end{minipage}
}
\end{picture}
}
%% General slide formatting %%
\definecolor{oxfordblue}{RGB}{4,30,66}
\pgfdeclareimage[width=0.9cm]{oxfordlogo}{example-image}
\pgfdeclareimage[width=1cm]{mathslogo}{example-image}
\setbeamertemplate{frametitle}
{%
\begin{picture}(0,0)
\put(-8,-10){%
\color{blue}\insertframetitle
}
\put(-7,-20){%
\tiny\color{oxfordblue}\insertframesubtitle
}
\end{picture}
}
\setbeamerfont{page number in head/foot}{size=\large}
\setbeamertemplate{footline}[frame number]
%% Information (author, title, etc.) %%
\title[Short version of title]{Scattering \& blow-up phenomena for semi-linear wave equations} % short title for footer
\author%
{%
\sc{Author: Edmund A. Paxton}\\
\newline \sc{Supervisor: Prof. Luc Nguyen} \newline
}
\institute%
{%
\textit{Mathematical Institute}\\
\textit{University of Oxford}
}
\date[PoM2015]{CDT summer project report, September 2016} % short date for footer
\begin{document}
\begin{frame}[plain]
\titlepage
\end{frame}
\end{document}
无关:
您应该尽量避免使用\newline
参数命令中的格式化命令,例如\author
。由于您已经在使用定义自己的标题页版本,因此请在此处包含此类格式化内容。
答案2
您的代码没有编译,但请尝试使用
{\setbeamertemplate{footline}{}\setbeamertemplate{headline}{}
\maketitle
}
这在本地将footline
和headline
模板设置为空。
下面是精简版的代码。请注意,\sc
几十年来一直被弃用,\scshape
应该改用。此外,它们都是开关,而不是带参数的命令,所以我将其重写为{\scshape Author: ....}
。
\documentclass{beamer}
\usetheme{Singapore}
%% Information (author, title, etc.) %%
\title[Short version of title]{Scattering \& blow-up phenomena for semi-linear wave equations} % short title for footer
\author%
{%
{\scshape Author: Edmund A. Paxton
\newline Supervisor: Prof. Luc Nguyen} \newline
}
\institute%
{%
\textit{Mathematical Institute}\\
\textit{University of Oxford}
}
\date[PoM2015]{CDT summer project report, September 2016} % short date for footer
\begin{document}
{\setbeamertemplate{footline}{}\setbeamertemplate{headline}{}
\maketitle
}
\section{Intro?}
\begin{frame}
\frametitle{Something}
ABC
\end{frame}
\end{document}