删除标题框中的页码而不改变华沙主题

删除标题框中的页码而不改变华沙主题

我运用了删除标题框中的页码而不更改主题在我的 Beamer 演示幻灯片中。我使用的是华沙主题。但是,我对使用华沙主题的 Beamer 演示幻灯片的乳胶代码所做的修改不正确。我的代码是:

\documentclass {beamer}

\mode<beamer>{\usetheme{Warsaw}}
\title[Test Short Title]{Test Long Title}

\begin{document}
\bgroup
\makeatletter
\setbeamertemplate{footline}
{
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1ex,rightskip=1.5em]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor\expandafter\beamer@ifempty\expandafter{\beamer@shortinstitute}{}{~~(\insertshortinstitute)}
  \end{beamercolorbox}%

   \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1ex,leftskip=1.5em]{title in head/foot}%
   \usebeamerfont{title in head/foot}\insertshorttitle{}\hspace*{2em}
%    \insertframenumber{} / \inserttotalframenumber\hspace*{2ex} 
    \hspace*{6ex}
  \end{beamercolorbox}}%
  \vskip0pt%
}
\makeatother

\begin{frame}
\titlepage
\end{frame}
\egroup

\setcounter{framenumber}{0}

\begin{frame}
\frametitle{First test frame}

\begin{itemize}
\item Item 1
\item Item 2
\end{itemize}
\end{frame}

\begin{frame}
\frametitle{Second test frame}

\begin{itemize}
\item Item 1
\item Item 2
\item Item 3
\item Item 4
\end{itemize}
\end{frame}

\begin{frame}
\frametitle{Third test frame}

\begin{itemize}
\item Item 1
\item Item 2
\end{itemize}
\end{frame}

\begin{frame} More \end{frame}

\end{document}

Kindly guide me what to do.

Eagerly waiting for your valuable response.

With regards,

Abhaya Kumar

答案1

使用框架选项noframenumbering

\begin{frame}[noframenumbering]
 \titlepage
\end{frame}

% OR

\begin{frame}[noframenumbering] 
    \maketitle  %\def\maketitle{\ifbeamer@inframe\titlepage\else\frame{\titlepage}\fi}
\end{frame}

相关内容