![删除除标题页之外所有幻灯片页脚中的作者](https://linux22.com/image/257272/%E5%88%A0%E9%99%A4%E9%99%A4%E6%A0%87%E9%A2%98%E9%A1%B5%E4%B9%8B%E5%A4%96%E6%89%80%E6%9C%89%E5%B9%BB%E7%81%AF%E7%89%87%E9%A1%B5%E8%84%9A%E4%B8%AD%E7%9A%84%E4%BD%9C%E8%80%85.png)
我想\author
从除开始幻灯片之外的所有幻灯片中删除。我使用了华沙主题。我不知道该怎么做。请帮帮我
这是我的代码
\documentclass{beamer}
\setbeamercovered{transparent}
\usetheme{Warsaw}
\begin{document}
\title[\insertframenumber/
\inserttotalframenumber]{Database}
\author{Mark dain \\ \scriptsize{(Reg.No 12345)} }
\institute{Dept. of Information \& Communication Technology}
\date{October 21,2012}
\frame{\titlepage}
\begin{frame}
\frametitle{Table of Contents}
\begin{itemize}
\item Introduction
\item Algorithm for reducing finite automata
\item Reliability models
\item Reduction steps
\item References
\item Conclusion
\end{itemize}
\end{frame}
\end{document}
我不希望作者显示在第二个框架的页脚中。
答案1
这是一个可能的解决方案:
\documentclass{beamer}
\usepackage{lmodern}
\setbeamercovered{transparent}
\usetheme{Warsaw}
\setbeamertemplate{footline}
{%
\leavevmode%
\hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fill,rightskip=.3cm]{author in head/foot}%
\usebeamerfont{author in head/foot}\ifnum\thepage=1\insertauthor\fi
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}}%
\vskip0pt%
}
\title[\insertframenumber/
\inserttotalframenumber]{Database}
\author{Mark dain \\ \scriptsize{(Reg.No 12345)} }
\institute{Dept. of Information \& Communication Technology}
\date{October 21,2012}
\begin{document}
\frame{\titlepage}
\begin{frame}
\frametitle{Table of Contents}
\begin{itemize}
\item Introduction
\item Algorithm for reducing finite automata
\item Reliability models
\item Reduction steps
\item References
\item Conclusion
\end{itemize}
\end{frame}
\begin{frame}{Title}
text
\end{frame}
\end{document}
这导致:
基本上,完成这项工作的代码行是:
\setbeamertemplate{footline}
{%
\leavevmode%
\hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fill,rightskip=.3cm]{author in head/foot}%
\usebeamerfont{author in head/foot}\ifnum\thepage=1\insertauthor\fi
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}}%
\vskip0pt%
}
footline
基本上复制了主题定义的标准split
,但现在author
仅当框架编号是标题页时才显示(通过检查\ifnum
当前页面的值来完成)。
当然,如果你只是想消除作者,而不是显示其他东西。