当我将后面的方括号留空\title
以从所有后续帧中删除标题时,它仍会插入空白标题行和各节的树枝。我想要
- 标题和标题行消失,
- 部分在标题中显示为最高级别,没有分支,
- 小节出现在节之下,并带有分支。
以下是我当前设置的 MWE:
\title[]
{My Slide Title}
\author[My Name]{My Name\\
My Dept\\
My College\\
My University\\
My Advisor}
% No navigation buttons
\setbeamertemplate{navigation symbols}{}
% Theme
\usetheme{Montpellier}
% Number slides with no totals
\setbeamertemplate{footline}{\quad\hfill\insertframenumber\strut\quad}
\documentclass[pdf]{beamer}
\mode<presentation>{}
\begin{document}
%% Title frame
\begin{frame}[plain]
\titlepage
\end{frame}
%% Frame: From here on out, I want no title or title line in the header, and for section
%% to instead appear as the highest line in the header
\section{Presentation Outline}
\begin{frame}
\frametitle{Presentation Outline}
\begin{enumerate}
\item Motivations
\item Background
\item A Framework for Domain Estimation
\item Patterns in Postfire Tree Cover
\item Methods for Model-assisted Estimation
\end{enumerate}
\end{frame}
\end{document}
答案1
您可以headline
像这样重新定义主题模板的(代码改编自中的原始代码beamerouterthemetree.sty
):
\documentclass[pdf]{beamer}
\title{My Slide Title}
\author[My Name]{My Name\\
My Dept\\
My College\\
My University\\
My Advisor}
% No navigation buttons
\setbeamertemplate{navigation symbols}{}
% Theme
\usetheme{Montpellier}
% Number slides with no totals
\setbeamertemplate{footline}{\quad\hfill\insertframenumber\strut\quad}
\makeatletter
\setbeamertemplate{headline}{%
\begin{beamercolorbox}[wd=\paperwidth,colsep=1.5pt]{upper separation line head}
\end{beamercolorbox}
\begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}
\usebeamerfont{title in head/foot}\insertsectionhead
\end{beamercolorbox}
\begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot}
\usebeamerfont{section in head/foot}%
\ifbeamer@tree@showhooks
\setbox\beamer@tempbox=\hbox{\insertsubsectionhead}%
\ifdim\wd\beamer@tempbox>1pt%
\hskip2pt\raise1.9pt\hbox{\vrule width0.4pt height1.875ex\vrule width 5pt height0.4pt}%
\hskip1pt%
\fi%
\else%
\hskip6pt%
\fi%
\insertsubsectionhead
\end{beamercolorbox}
\begin{beamercolorbox}[wd=\paperwidth,colsep=1.5pt]{lower separation line head}
\end{beamercolorbox}
}
\makeatother
\mode<presentation>{}
\begin{document}
%% Title frame
\begin{frame}[plain]
\titlepage
\end{frame}
%% Frame: From here on out, I want no title or title line in the header, and for section
%% to instead appear as the highest line in the header
\section{Presentation Outline}
\begin{frame}
\frametitle{Presentation Outline}
\begin{enumerate}
\item Motivations
\item Background
\item A Framework for Domain Estimation
\item Patterns in Postfire Tree Cover
\item Methods for Model-assisted Estimation
\end{enumerate}
\end{frame}
\subsection{Example Subsection}
\begin{frame}
\frametitle{Another frame}
\end{frame}
\end{document}
那么您就不需要使用来阻止打印标题了。顺便说一句,[]
我建议您将第一个放在代码中。\documentclass