删除除标题页之外所有幻灯片页脚中的作者

删除除标题页之外所有幻灯片页脚中的作者

我想\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当前页面的值来完成)。

当然,如果你只是想消除作者,而不是显示其他东西。

相关内容